github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/appinfo/automock/instance_finder.go (about) 1 // Code generated by mockery v2.14.0. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 internal "github.com/kyma-project/kyma-environment-broker/internal" 7 mock "github.com/stretchr/testify/mock" 8 9 predicate "github.com/kyma-project/kyma-environment-broker/internal/storage/predicate" 10 ) 11 12 // InstanceFinder is an autogenerated mock type for the InstanceFinder type 13 type InstanceFinder struct { 14 mock.Mock 15 } 16 17 // FindAllJoinedWithOperations provides a mock function with given fields: prct 18 func (_m *InstanceFinder) FindAllJoinedWithOperations(prct ...predicate.Predicate) ([]internal.InstanceWithOperation, error) { 19 _va := make([]interface{}, len(prct)) 20 for _i := range prct { 21 _va[_i] = prct[_i] 22 } 23 var _ca []interface{} 24 _ca = append(_ca, _va...) 25 ret := _m.Called(_ca...) 26 27 var r0 []internal.InstanceWithOperation 28 if rf, ok := ret.Get(0).(func(...predicate.Predicate) []internal.InstanceWithOperation); ok { 29 r0 = rf(prct...) 30 } else { 31 if ret.Get(0) != nil { 32 r0 = ret.Get(0).([]internal.InstanceWithOperation) 33 } 34 } 35 36 var r1 error 37 if rf, ok := ret.Get(1).(func(...predicate.Predicate) error); ok { 38 r1 = rf(prct...) 39 } else { 40 r1 = ret.Error(1) 41 } 42 43 return r0, r1 44 } 45 46 type mockConstructorTestingTNewInstanceFinder interface { 47 mock.TestingT 48 Cleanup(func()) 49 } 50 51 // NewInstanceFinder creates a new instance of InstanceFinder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 52 func NewInstanceFinder(t mockConstructorTestingTNewInstanceFinder) *InstanceFinder { 53 mock := &InstanceFinder{} 54 mock.Mock.Test(t) 55 56 t.Cleanup(func() { mock.AssertExpectations(t) }) 57 58 return mock 59 }