github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/formation/automock/process_func.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 context "context" 7 8 graphql "github.com/kyma-incubator/compass/components/director/pkg/graphql" 9 10 mock "github.com/stretchr/testify/mock" 11 12 model "github.com/kyma-incubator/compass/components/director/internal/model" 13 ) 14 15 // ProcessFunc is an autogenerated mock type for the processFunc type 16 type ProcessFunc struct { 17 mock.Mock 18 } 19 20 // ProcessScenarioFunc provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4 21 func (_m *ProcessFunc) ProcessScenarioFunc(_a0 context.Context, _a1 string, _a2 string, _a3 graphql.FormationObjectType, _a4 model.Formation) (*model.Formation, error) { 22 ret := _m.Called(_a0, _a1, _a2, _a3, _a4) 23 24 var r0 *model.Formation 25 if rf, ok := ret.Get(0).(func(context.Context, string, string, graphql.FormationObjectType, model.Formation) *model.Formation); ok { 26 r0 = rf(_a0, _a1, _a2, _a3, _a4) 27 } else { 28 if ret.Get(0) != nil { 29 r0 = ret.Get(0).(*model.Formation) 30 } 31 } 32 33 var r1 error 34 if rf, ok := ret.Get(1).(func(context.Context, string, string, graphql.FormationObjectType, model.Formation) error); ok { 35 r1 = rf(_a0, _a1, _a2, _a3, _a4) 36 } else { 37 r1 = ret.Error(1) 38 } 39 40 return r0, r1 41 } 42 43 type mockConstructorTestingTNewProcessFunc interface { 44 mock.TestingT 45 Cleanup(func()) 46 } 47 48 // NewProcessFunc creates a new instance of ProcessFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 49 func NewProcessFunc(t mockConstructorTestingTNewProcessFunc) *ProcessFunc { 50 mock := &ProcessFunc{} 51 mock.Mock.Test(t) 52 53 t.Cleanup(func() { mock.AssertExpectations(t) }) 54 55 return mock 56 }