github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/apptemplate/automock/app_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 10 // AppConverter is an autogenerated mock type for the AppConverter type 11 type AppConverter struct { 12 mock.Mock 13 } 14 15 // CreateJSONInputGQLToJSON provides a mock function with given fields: in 16 func (_m *AppConverter) CreateJSONInputGQLToJSON(in *graphql.ApplicationJSONInput) (string, error) { 17 ret := _m.Called(in) 18 19 var r0 string 20 if rf, ok := ret.Get(0).(func(*graphql.ApplicationJSONInput) string); ok { 21 r0 = rf(in) 22 } else { 23 r0 = ret.Get(0).(string) 24 } 25 26 var r1 error 27 if rf, ok := ret.Get(1).(func(*graphql.ApplicationJSONInput) error); ok { 28 r1 = rf(in) 29 } else { 30 r1 = ret.Error(1) 31 } 32 33 return r0, r1 34 } 35 36 type mockConstructorTestingTNewAppConverter interface { 37 mock.TestingT 38 Cleanup(func()) 39 } 40 41 // NewAppConverter creates a new instance of AppConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 42 func NewAppConverter(t mockConstructorTestingTNewAppConverter) *AppConverter { 43 mock := &AppConverter{} 44 mock.Mock.Test(t) 45 46 t.Cleanup(func() { mock.AssertExpectations(t) }) 47 48 return mock 49 }