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