func (c *FakeProwJobs) List(opts v1.ListOptions) (result *prowjobsv1.ProwJobList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(prowjobsResource, prowjobsKind, c.ns, opts), &prowjobsv1.ProwJobList{})

	if obj == nil {
		return nil, err
	}

	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &prowjobsv1.ProwJobList{ListMeta: obj.(*prowjobsv1.ProwJobList).ListMeta}
	for _, item := range obj.(*prowjobsv1.ProwJobList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeProwJobs) List(opts v1.ListOptions) (result *prowjobsv1.ProwJobList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(prowjobsResource, prowjobsKind, c.ns, opts), &prowjobsv1.ProwJobList{})

	if obj == nil {
		return nil, err
	}

	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &prowjobsv1.ProwJobList{ListMeta: obj.(*prowjobsv1.ProwJobList).ListMeta}
	for _, item := range obj.(*prowjobsv1.ProwJobList).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 ProwJobs that match those selectors.