-
Notifications
You must be signed in to change notification settings - Fork 269
/
manager_mock.go
76 lines (63 loc) · 2.33 KB
/
manager_mock.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
// Code generated by MockGen. DO NOT EDIT.
// Source: cdc/processor/manager.go
// Package mock_processor is a generated GoMock package.
package mock_processor
import (
context "context"
io "io"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
orchestrator "github.com/pingcap/tiflow/pkg/orchestrator"
)
// MockManager is a mock of Manager interface.
type MockManager struct {
ctrl *gomock.Controller
recorder *MockManagerMockRecorder
}
// MockManagerMockRecorder is the mock recorder for MockManager.
type MockManagerMockRecorder struct {
mock *MockManager
}
// NewMockManager creates a new mock instance.
func NewMockManager(ctrl *gomock.Controller) *MockManager {
mock := &MockManager{ctrl: ctrl}
mock.recorder = &MockManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockManager) EXPECT() *MockManagerMockRecorder {
return m.recorder
}
// Close mocks base method.
func (m *MockManager) Close() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Close")
}
// Close indicates an expected call of Close.
func (mr *MockManagerMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockManager)(nil).Close))
}
// Tick mocks base method.
func (m *MockManager) Tick(ctx context.Context, state orchestrator.ReactorState) (orchestrator.ReactorState, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Tick", ctx, state)
ret0, _ := ret[0].(orchestrator.ReactorState)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Tick indicates an expected call of Tick.
func (mr *MockManagerMockRecorder) Tick(ctx, state interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tick", reflect.TypeOf((*MockManager)(nil).Tick), ctx, state)
}
// WriteDebugInfo mocks base method.
func (m *MockManager) WriteDebugInfo(ctx context.Context, w io.Writer, done chan<- error) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "WriteDebugInfo", ctx, w, done)
}
// WriteDebugInfo indicates an expected call of WriteDebugInfo.
func (mr *MockManagerMockRecorder) WriteDebugInfo(ctx, w, done interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteDebugInfo", reflect.TypeOf((*MockManager)(nil).WriteDebugInfo), ctx, w, done)
}