/
mock_cron_runner.go
82 lines (69 loc) · 2.49 KB
/
mock_cron_runner.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/duc-cnzj/mars/v4/internal/contracts (interfaces: CronRunner)
//
// Generated by this command:
//
// mockgen -destination ../mock/mock_cron_runner.go -package mock github.com/duc-cnzj/mars/v4/internal/contracts CronRunner
//
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockCronRunner is a mock of CronRunner interface.
type MockCronRunner struct {
ctrl *gomock.Controller
recorder *MockCronRunnerMockRecorder
}
// MockCronRunnerMockRecorder is the mock recorder for MockCronRunner.
type MockCronRunnerMockRecorder struct {
mock *MockCronRunner
}
// NewMockCronRunner creates a new mock instance.
func NewMockCronRunner(ctrl *gomock.Controller) *MockCronRunner {
mock := &MockCronRunner{ctrl: ctrl}
mock.recorder = &MockCronRunnerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCronRunner) EXPECT() *MockCronRunnerMockRecorder {
return m.recorder
}
// AddCommand mocks base method.
func (m *MockCronRunner) AddCommand(arg0, arg1 string, arg2 func()) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddCommand", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// AddCommand indicates an expected call of AddCommand.
func (mr *MockCronRunnerMockRecorder) AddCommand(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCommand", reflect.TypeOf((*MockCronRunner)(nil).AddCommand), arg0, arg1, arg2)
}
// Run mocks base method.
func (m *MockCronRunner) Run(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Run", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Run indicates an expected call of Run.
func (mr *MockCronRunnerMockRecorder) Run(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockCronRunner)(nil).Run), arg0)
}
// Shutdown mocks base method.
func (m *MockCronRunner) Shutdown(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Shutdown", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Shutdown indicates an expected call of Shutdown.
func (mr *MockCronRunnerMockRecorder) Shutdown(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockCronRunner)(nil).Shutdown), arg0)
}