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