github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/runtime/automock/runtime_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 mock "github.com/stretchr/testify/mock" 8 9 model "github.com/kyma-incubator/compass/components/director/internal/model" 10 ) 11 12 // RuntimeConverter is an autogenerated mock type for the RuntimeConverter type 13 type RuntimeConverter struct { 14 mock.Mock 15 } 16 17 // MultipleToGraphQL provides a mock function with given fields: in 18 func (_m *RuntimeConverter) MultipleToGraphQL(in []*model.Runtime) []*graphql.Runtime { 19 ret := _m.Called(in) 20 21 var r0 []*graphql.Runtime 22 if rf, ok := ret.Get(0).(func([]*model.Runtime) []*graphql.Runtime); ok { 23 r0 = rf(in) 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).([]*graphql.Runtime) 27 } 28 } 29 30 return r0 31 } 32 33 // RegisterInputFromGraphQL provides a mock function with given fields: in 34 func (_m *RuntimeConverter) RegisterInputFromGraphQL(in graphql.RuntimeRegisterInput) (model.RuntimeRegisterInput, error) { 35 ret := _m.Called(in) 36 37 var r0 model.RuntimeRegisterInput 38 if rf, ok := ret.Get(0).(func(graphql.RuntimeRegisterInput) model.RuntimeRegisterInput); ok { 39 r0 = rf(in) 40 } else { 41 r0 = ret.Get(0).(model.RuntimeRegisterInput) 42 } 43 44 var r1 error 45 if rf, ok := ret.Get(1).(func(graphql.RuntimeRegisterInput) error); ok { 46 r1 = rf(in) 47 } else { 48 r1 = ret.Error(1) 49 } 50 51 return r0, r1 52 } 53 54 // ToGraphQL provides a mock function with given fields: in 55 func (_m *RuntimeConverter) ToGraphQL(in *model.Runtime) *graphql.Runtime { 56 ret := _m.Called(in) 57 58 var r0 *graphql.Runtime 59 if rf, ok := ret.Get(0).(func(*model.Runtime) *graphql.Runtime); ok { 60 r0 = rf(in) 61 } else { 62 if ret.Get(0) != nil { 63 r0 = ret.Get(0).(*graphql.Runtime) 64 } 65 } 66 67 return r0 68 } 69 70 // UpdateInputFromGraphQL provides a mock function with given fields: in 71 func (_m *RuntimeConverter) UpdateInputFromGraphQL(in graphql.RuntimeUpdateInput) model.RuntimeUpdateInput { 72 ret := _m.Called(in) 73 74 var r0 model.RuntimeUpdateInput 75 if rf, ok := ret.Get(0).(func(graphql.RuntimeUpdateInput) model.RuntimeUpdateInput); ok { 76 r0 = rf(in) 77 } else { 78 r0 = ret.Get(0).(model.RuntimeUpdateInput) 79 } 80 81 return r0 82 } 83 84 type mockConstructorTestingTNewRuntimeConverter interface { 85 mock.TestingT 86 Cleanup(func()) 87 } 88 89 // NewRuntimeConverter creates a new instance of RuntimeConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 90 func NewRuntimeConverter(t mockConstructorTestingTNewRuntimeConverter) *RuntimeConverter { 91 mock := &RuntimeConverter{} 92 mock.Mock.Test(t) 93 94 t.Cleanup(func() { mock.AssertExpectations(t) }) 95 96 return mock 97 }