forked from kyma-project/kyma
/
function_lister.go
34 lines (28 loc) · 1 KB
/
function_lister.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Code generated by mockery v1.0.0
package automock
import mock "github.com/stretchr/testify/mock"
import pager "github.com/kyma-project/kyma/components/ui-api-layer/internal/pager"
import v1beta1 "github.com/kubeless/kubeless/pkg/apis/kubeless/v1beta1"
// functionLister is an autogenerated mock type for the functionLister type
type functionLister struct {
mock.Mock
}
// List provides a mock function with given fields: environment, pagingParams
func (_m *functionLister) List(environment string, pagingParams pager.PagingParams) ([]*v1beta1.Function, error) {
ret := _m.Called(environment, pagingParams)
var r0 []*v1beta1.Function
if rf, ok := ret.Get(0).(func(string, pager.PagingParams) []*v1beta1.Function); ok {
r0 = rf(environment, pagingParams)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]*v1beta1.Function)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string, pager.PagingParams) error); ok {
r1 = rf(environment, pagingParams)
} else {
r1 = ret.Error(1)
}
return r0, r1
}