github.com/kyma-project/kyma-environment-broker@v0.0.1/common/orchestration/automock/strategy.go (about) 1 // Code generated by mockery v2.14.0. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 orchestration "github.com/kyma-project/kyma-environment-broker/common/orchestration" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // Strategy is an autogenerated mock type for the Strategy type 11 type Strategy struct { 12 mock.Mock 13 } 14 15 // Cancel provides a mock function with given fields: executionID 16 func (_m *Strategy) Cancel(executionID string) { 17 _m.Called(executionID) 18 } 19 20 // Execute provides a mock function with given fields: operations, strategySpec 21 func (_m *Strategy) Execute(operations []orchestration.RuntimeOperation, strategySpec orchestration.StrategySpec) (string, error) { 22 ret := _m.Called(operations, strategySpec) 23 24 var r0 string 25 if rf, ok := ret.Get(0).(func([]orchestration.RuntimeOperation, orchestration.StrategySpec) string); ok { 26 r0 = rf(operations, strategySpec) 27 } else { 28 r0 = ret.Get(0).(string) 29 } 30 31 var r1 error 32 if rf, ok := ret.Get(1).(func([]orchestration.RuntimeOperation, orchestration.StrategySpec) error); ok { 33 r1 = rf(operations, strategySpec) 34 } else { 35 r1 = ret.Error(1) 36 } 37 38 return r0, r1 39 } 40 41 // Insert provides a mock function with given fields: execID, operations, strategySpec 42 func (_m *Strategy) Insert(execID string, operations []orchestration.RuntimeOperation, strategySpec orchestration.StrategySpec) error { 43 ret := _m.Called(execID, operations, strategySpec) 44 45 var r0 error 46 if rf, ok := ret.Get(0).(func(string, []orchestration.RuntimeOperation, orchestration.StrategySpec) error); ok { 47 r0 = rf(execID, operations, strategySpec) 48 } else { 49 r0 = ret.Error(0) 50 } 51 52 return r0 53 } 54 55 // SpeedUp provides a mock function with given fields: speedFactor 56 func (_m *Strategy) SpeedUp(speedFactor int) { 57 _m.Called(speedFactor) 58 } 59 60 // Wait provides a mock function with given fields: executionID 61 func (_m *Strategy) Wait(executionID string) { 62 _m.Called(executionID) 63 } 64 65 type mockConstructorTestingTNewStrategy interface { 66 mock.TestingT 67 Cleanup(func()) 68 } 69 70 // NewStrategy creates a new instance of Strategy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 71 func NewStrategy(t mockConstructorTestingTNewStrategy) *Strategy { 72 mock := &Strategy{} 73 mock.Mock.Test(t) 74 75 t.Cleanup(func() { mock.AssertExpectations(t) }) 76 77 return mock 78 }