github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/runtime/automock/runtime_context_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 // RuntimeContextConverter is an autogenerated mock type for the RuntimeContextConverter type 13 type RuntimeContextConverter struct { 14 mock.Mock 15 } 16 17 // MultipleToGraphQL provides a mock function with given fields: in 18 func (_m *RuntimeContextConverter) MultipleToGraphQL(in []*model.RuntimeContext) []*graphql.RuntimeContext { 19 ret := _m.Called(in) 20 21 var r0 []*graphql.RuntimeContext 22 if rf, ok := ret.Get(0).(func([]*model.RuntimeContext) []*graphql.RuntimeContext); ok { 23 r0 = rf(in) 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).([]*graphql.RuntimeContext) 27 } 28 } 29 30 return r0 31 } 32 33 // ToGraphQL provides a mock function with given fields: in 34 func (_m *RuntimeContextConverter) ToGraphQL(in *model.RuntimeContext) *graphql.RuntimeContext { 35 ret := _m.Called(in) 36 37 var r0 *graphql.RuntimeContext 38 if rf, ok := ret.Get(0).(func(*model.RuntimeContext) *graphql.RuntimeContext); ok { 39 r0 = rf(in) 40 } else { 41 if ret.Get(0) != nil { 42 r0 = ret.Get(0).(*graphql.RuntimeContext) 43 } 44 } 45 46 return r0 47 } 48 49 type mockConstructorTestingTNewRuntimeContextConverter interface { 50 mock.TestingT 51 Cleanup(func()) 52 } 53 54 // NewRuntimeContextConverter creates a new instance of RuntimeContextConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 55 func NewRuntimeContextConverter(t mockConstructorTestingTNewRuntimeContextConverter) *RuntimeContextConverter { 56 mock := &RuntimeContextConverter{} 57 mock.Mock.Test(t) 58 59 t.Cleanup(func() { mock.AssertExpectations(t) }) 60 61 return mock 62 }