-
Notifications
You must be signed in to change notification settings - Fork 269
/
tso_mock.go
89 lines (74 loc) · 2.57 KB
/
tso_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
77
78
79
80
81
82
83
84
85
86
87
88
89
// Code generated by MockGen. DO NOT EDIT.
// Source: pkg/api/v2/tso.go
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
v2 "github.com/pingcap/tiflow/cdc/api/v2"
v20 "github.com/pingcap/tiflow/pkg/api/v2"
)
// MockTsoGetter is a mock of TsoGetter interface.
type MockTsoGetter struct {
ctrl *gomock.Controller
recorder *MockTsoGetterMockRecorder
}
// MockTsoGetterMockRecorder is the mock recorder for MockTsoGetter.
type MockTsoGetterMockRecorder struct {
mock *MockTsoGetter
}
// NewMockTsoGetter creates a new mock instance.
func NewMockTsoGetter(ctrl *gomock.Controller) *MockTsoGetter {
mock := &MockTsoGetter{ctrl: ctrl}
mock.recorder = &MockTsoGetterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTsoGetter) EXPECT() *MockTsoGetterMockRecorder {
return m.recorder
}
// Tso mocks base method.
func (m *MockTsoGetter) Tso() v20.TsoInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Tso")
ret0, _ := ret[0].(v20.TsoInterface)
return ret0
}
// Tso indicates an expected call of Tso.
func (mr *MockTsoGetterMockRecorder) Tso() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tso", reflect.TypeOf((*MockTsoGetter)(nil).Tso))
}
// MockTsoInterface is a mock of TsoInterface interface.
type MockTsoInterface struct {
ctrl *gomock.Controller
recorder *MockTsoInterfaceMockRecorder
}
// MockTsoInterfaceMockRecorder is the mock recorder for MockTsoInterface.
type MockTsoInterfaceMockRecorder struct {
mock *MockTsoInterface
}
// NewMockTsoInterface creates a new mock instance.
func NewMockTsoInterface(ctrl *gomock.Controller) *MockTsoInterface {
mock := &MockTsoInterface{ctrl: ctrl}
mock.recorder = &MockTsoInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTsoInterface) EXPECT() *MockTsoInterfaceMockRecorder {
return m.recorder
}
// Query mocks base method.
func (m *MockTsoInterface) Query(ctx context.Context, config *v2.UpstreamConfig) (*v2.Tso, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Query", ctx, config)
ret0, _ := ret[0].(*v2.Tso)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Query indicates an expected call of Query.
func (mr *MockTsoInterfaceMockRecorder) Query(ctx, config interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockTsoInterface)(nil).Query), ctx, config)
}