// Code generated by MockGen. DO NOT EDIT. // Source: github.com/FernandoJVideira/simple_bank/internal/worker (interfaces: TaskDistributor) // // Generated by this command: // // mockgen --package mockwk --destination internal/worker/mock/distributor.go github.com/FernandoJVideira/simple_bank/internal/worker TaskDistributor // // Package mockwk is a generated GoMock package. package mockwk import ( context "context" reflect "reflect" worker "github.com/FernandoJVideira/simple_bank/internal/worker" asynq "github.com/hibiken/asynq" gomock "go.uber.org/mock/gomock" ) // MockTaskDistributor is a mock of TaskDistributor interface. type MockTaskDistributor struct { ctrl *gomock.Controller recorder *MockTaskDistributorMockRecorder isgomock struct{} } // MockTaskDistributorMockRecorder is the mock recorder for MockTaskDistributor. type MockTaskDistributorMockRecorder struct { mock *MockTaskDistributor } // NewMockTaskDistributor creates a new mock instance. func NewMockTaskDistributor(ctrl *gomock.Controller) *MockTaskDistributor { mock := &MockTaskDistributor{ctrl: ctrl} mock.recorder = &MockTaskDistributorMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockTaskDistributor) EXPECT() *MockTaskDistributorMockRecorder { return m.recorder } // DestributeTaskSendVerifyEmail mocks base method. func (m *MockTaskDistributor) DestributeTaskSendVerifyEmail(ctx context.Context, payload *worker.SendVerifyEmailPayload, opts ...asynq.Option) error { m.ctrl.T.Helper() varargs := []any{ctx, payload} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DestributeTaskSendVerifyEmail", varargs...) ret0, _ := ret[0].(error) return ret0 } // DestributeTaskSendVerifyEmail indicates an expected call of DestributeTaskSendVerifyEmail. func (mr *MockTaskDistributorMockRecorder) DestributeTaskSendVerifyEmail(ctx, payload any, opts ...any) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx, payload}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DestributeTaskSendVerifyEmail", reflect.TypeOf((*MockTaskDistributor)(nil).DestributeTaskSendVerifyEmail), varargs...) }