github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/systemfetcher/automock/int_sys_svc.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 context "context" 7 8 model "github.com/kyma-incubator/compass/components/director/internal/model" 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // IntSysSvc is an autogenerated mock type for the intSysSvc type 13 type IntSysSvc struct { 14 mock.Mock 15 } 16 17 // Create provides a mock function with given fields: ctx, in 18 func (_m *IntSysSvc) Create(ctx context.Context, in model.IntegrationSystemInput) (string, error) { 19 ret := _m.Called(ctx, in) 20 21 var r0 string 22 if rf, ok := ret.Get(0).(func(context.Context, model.IntegrationSystemInput) string); ok { 23 r0 = rf(ctx, in) 24 } else { 25 r0 = ret.Get(0).(string) 26 } 27 28 var r1 error 29 if rf, ok := ret.Get(1).(func(context.Context, model.IntegrationSystemInput) error); ok { 30 r1 = rf(ctx, in) 31 } else { 32 r1 = ret.Error(1) 33 } 34 35 return r0, r1 36 } 37 38 // List provides a mock function with given fields: ctx, pageSize, cursor 39 func (_m *IntSysSvc) List(ctx context.Context, pageSize int, cursor string) (model.IntegrationSystemPage, error) { 40 ret := _m.Called(ctx, pageSize, cursor) 41 42 var r0 model.IntegrationSystemPage 43 if rf, ok := ret.Get(0).(func(context.Context, int, string) model.IntegrationSystemPage); ok { 44 r0 = rf(ctx, pageSize, cursor) 45 } else { 46 r0 = ret.Get(0).(model.IntegrationSystemPage) 47 } 48 49 var r1 error 50 if rf, ok := ret.Get(1).(func(context.Context, int, string) error); ok { 51 r1 = rf(ctx, pageSize, cursor) 52 } else { 53 r1 = ret.Error(1) 54 } 55 56 return r0, r1 57 } 58 59 type mockConstructorTestingTNewIntSysSvc interface { 60 mock.TestingT 61 Cleanup(func()) 62 } 63 64 // NewIntSysSvc creates a new instance of IntSysSvc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 65 func NewIntSysSvc(t mockConstructorTestingTNewIntSysSvc) *IntSysSvc { 66 mock := &IntSysSvc{} 67 mock.Mock.Test(t) 68 69 t.Cleanup(func() { mock.AssertExpectations(t) }) 70 71 return mock 72 }