github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/formationassignment/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 mock "github.com/stretchr/testify/mock" 10 11 model "github.com/kyma-incubator/compass/components/director/internal/model" 12 ) 13 14 // StatusService is an autogenerated mock type for the statusService type 15 type StatusService struct { 16 mock.Mock 17 } 18 19 // DeleteWithConstraints provides a mock function with given fields: ctx, id 20 func (_m *StatusService) DeleteWithConstraints(ctx context.Context, id string) error { 21 ret := _m.Called(ctx, id) 22 23 var r0 error 24 if rf, ok := ret.Get(0).(func(context.Context, string) error); ok { 25 r0 = rf(ctx, id) 26 } else { 27 r0 = ret.Error(0) 28 } 29 30 return r0 31 } 32 33 // SetAssignmentToErrorStateWithConstraints provides a mock function with given fields: ctx, assignment, errorMessage, errorCode, state, operation 34 func (_m *StatusService) SetAssignmentToErrorStateWithConstraints(ctx context.Context, assignment *model.FormationAssignment, errorMessage string, errorCode formationassignment.AssignmentErrorCode, state model.FormationAssignmentState, operation model.FormationOperation) error { 35 ret := _m.Called(ctx, assignment, errorMessage, errorCode, state, operation) 36 37 var r0 error 38 if rf, ok := ret.Get(0).(func(context.Context, *model.FormationAssignment, string, formationassignment.AssignmentErrorCode, model.FormationAssignmentState, model.FormationOperation) error); ok { 39 r0 = rf(ctx, assignment, errorMessage, errorCode, state, operation) 40 } else { 41 r0 = ret.Error(0) 42 } 43 44 return r0 45 } 46 47 // UpdateWithConstraints provides a mock function with given fields: ctx, fa, operation 48 func (_m *StatusService) UpdateWithConstraints(ctx context.Context, fa *model.FormationAssignment, operation model.FormationOperation) error { 49 ret := _m.Called(ctx, fa, operation) 50 51 var r0 error 52 if rf, ok := ret.Get(0).(func(context.Context, *model.FormationAssignment, model.FormationOperation) error); ok { 53 r0 = rf(ctx, fa, operation) 54 } else { 55 r0 = ret.Error(0) 56 } 57 58 return r0 59 } 60 61 type mockConstructorTestingTNewStatusService interface { 62 mock.TestingT 63 Cleanup(func()) 64 } 65 66 // 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. 67 func NewStatusService(t mockConstructorTestingTNewStatusService) *StatusService { 68 mock := &StatusService{} 69 mock.Mock.Test(t) 70 71 t.Cleanup(func() { mock.AssertExpectations(t) }) 72 73 return mock 74 }