github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/formation/automock/asa_engine.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 context "context" 7 8 formation "github.com/kyma-incubator/compass/components/director/internal/domain/formation" 9 graphql "github.com/kyma-incubator/compass/components/director/pkg/graphql" 10 11 mock "github.com/stretchr/testify/mock" 12 13 model "github.com/kyma-incubator/compass/components/director/internal/model" 14 ) 15 16 // AsaEngine is an autogenerated mock type for the asaEngine type 17 type AsaEngine struct { 18 mock.Mock 19 } 20 21 // EnsureScenarioAssigned provides a mock function with given fields: ctx, in, processScenarioFunc 22 func (_m *AsaEngine) EnsureScenarioAssigned(ctx context.Context, in model.AutomaticScenarioAssignment, processScenarioFunc formation.ProcessScenarioFunc) error { 23 ret := _m.Called(ctx, in, processScenarioFunc) 24 25 var r0 error 26 if rf, ok := ret.Get(0).(func(context.Context, model.AutomaticScenarioAssignment, formation.ProcessScenarioFunc) error); ok { 27 r0 = rf(ctx, in, processScenarioFunc) 28 } else { 29 r0 = ret.Error(0) 30 } 31 32 return r0 33 } 34 35 // GetMatchingFuncByFormationObjectType provides a mock function with given fields: objType 36 func (_m *AsaEngine) GetMatchingFuncByFormationObjectType(objType graphql.FormationObjectType) (formation.MatchingFunc, error) { 37 ret := _m.Called(objType) 38 39 var r0 formation.MatchingFunc 40 if rf, ok := ret.Get(0).(func(graphql.FormationObjectType) formation.MatchingFunc); ok { 41 r0 = rf(objType) 42 } else { 43 if ret.Get(0) != nil { 44 r0 = ret.Get(0).(formation.MatchingFunc) 45 } 46 } 47 48 var r1 error 49 if rf, ok := ret.Get(1).(func(graphql.FormationObjectType) error); ok { 50 r1 = rf(objType) 51 } else { 52 r1 = ret.Error(1) 53 } 54 55 return r0, r1 56 } 57 58 // GetScenariosFromMatchingASAs provides a mock function with given fields: ctx, objectID, objType 59 func (_m *AsaEngine) GetScenariosFromMatchingASAs(ctx context.Context, objectID string, objType graphql.FormationObjectType) ([]string, error) { 60 ret := _m.Called(ctx, objectID, objType) 61 62 var r0 []string 63 if rf, ok := ret.Get(0).(func(context.Context, string, graphql.FormationObjectType) []string); ok { 64 r0 = rf(ctx, objectID, objType) 65 } else { 66 if ret.Get(0) != nil { 67 r0 = ret.Get(0).([]string) 68 } 69 } 70 71 var r1 error 72 if rf, ok := ret.Get(1).(func(context.Context, string, graphql.FormationObjectType) error); ok { 73 r1 = rf(ctx, objectID, objType) 74 } else { 75 r1 = ret.Error(1) 76 } 77 78 return r0, r1 79 } 80 81 // IsFormationComingFromASA provides a mock function with given fields: ctx, objectID, _a2, objectType 82 func (_m *AsaEngine) IsFormationComingFromASA(ctx context.Context, objectID string, _a2 string, objectType graphql.FormationObjectType) (bool, error) { 83 ret := _m.Called(ctx, objectID, _a2, objectType) 84 85 var r0 bool 86 if rf, ok := ret.Get(0).(func(context.Context, string, string, graphql.FormationObjectType) bool); ok { 87 r0 = rf(ctx, objectID, _a2, objectType) 88 } else { 89 r0 = ret.Get(0).(bool) 90 } 91 92 var r1 error 93 if rf, ok := ret.Get(1).(func(context.Context, string, string, graphql.FormationObjectType) error); ok { 94 r1 = rf(ctx, objectID, _a2, objectType) 95 } else { 96 r1 = ret.Error(1) 97 } 98 99 return r0, r1 100 } 101 102 // RemoveAssignedScenario provides a mock function with given fields: ctx, in, processScenarioFunc 103 func (_m *AsaEngine) RemoveAssignedScenario(ctx context.Context, in model.AutomaticScenarioAssignment, processScenarioFunc formation.ProcessScenarioFunc) error { 104 ret := _m.Called(ctx, in, processScenarioFunc) 105 106 var r0 error 107 if rf, ok := ret.Get(0).(func(context.Context, model.AutomaticScenarioAssignment, formation.ProcessScenarioFunc) error); ok { 108 r0 = rf(ctx, in, processScenarioFunc) 109 } else { 110 r0 = ret.Error(0) 111 } 112 113 return r0 114 } 115 116 type mockConstructorTestingTNewAsaEngine interface { 117 mock.TestingT 118 Cleanup(func()) 119 } 120 121 // NewAsaEngine creates a new instance of AsaEngine. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 122 func NewAsaEngine(t mockConstructorTestingTNewAsaEngine) *AsaEngine { 123 mock := &AsaEngine{} 124 mock.Mock.Test(t) 125 126 t.Cleanup(func() { mock.AssertExpectations(t) }) 127 128 return mock 129 }