// List takes label and field selectors, and returns the list of NetworkConnectivityTests that match those selectors.
List takes label and field selectors, and returns the list of NetworkConnectivityTests that match those selectors.
// List takes label and field selectors and returns the list of NetworkConnectivityTests that match those selectors .
func (c *FakeNetworkConnectivityTests) List(opts v1.ListOptions) (result *v1alpha1.NetworkConnectivityTestList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootListAction(networkconnectivitytestsResource, networkconnectivitytestsKind, opts), &v1alpha1.NetworkConnectivityTestList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.NetworkConnectivityTestList{ListMeta: obj.(*v1alpha1.NetworkConnectivityTestList).ListMeta}
	for _, item := range obj.(*v1alpha1.NetworkConnectivityTestList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func ( c * FakeNetworkConnectivityTests ) List ( opts v1 . ListOptions ) ( result * v1alpha1 . NetworkConnectivityTestList , err error ) { obj , err := c . Fake . Invokes ( testing . NewRootListAction ( networkconnectivitytestsResource , networkconnectivitytestsKind , opts ) , & v1alpha1 . NetworkConnectivityTestList { } ) if obj == nil { return nil , err } label , _ , _ := testing . ExtractFromListOptions ( opts ) if label == nil { label = labels . Everything ( ) } list := & v1alpha1 . NetworkConnectivityTestList { ListMeta : obj . ( * v1alpha1 . NetworkConnectivityTestList ) . ListMeta } for _ , item := range obj . ( * v1alpha1 . NetworkConnectivityTestList ) . Items { if label . Matches ( labels . Set ( item . Labels ) ) { list . Items = append ( list . Items , item ) } } return list , err }
List takes label and field selectors, and returns the list of NetworkConnectivityTests that match those selectors.
List takes label and field selectors and returns the list of NetworkConnectivityTests that match those selectors .