-
Notifications
You must be signed in to change notification settings - Fork 269
/
capture_mock.go
89 lines (74 loc) · 2.74 KB
/
capture_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/capture.go
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
model "github.com/pingcap/tiflow/cdc/model"
v2 "github.com/pingcap/tiflow/pkg/api/v2"
)
// MockCapturesGetter is a mock of CapturesGetter interface.
type MockCapturesGetter struct {
ctrl *gomock.Controller
recorder *MockCapturesGetterMockRecorder
}
// MockCapturesGetterMockRecorder is the mock recorder for MockCapturesGetter.
type MockCapturesGetterMockRecorder struct {
mock *MockCapturesGetter
}
// NewMockCapturesGetter creates a new mock instance.
func NewMockCapturesGetter(ctrl *gomock.Controller) *MockCapturesGetter {
mock := &MockCapturesGetter{ctrl: ctrl}
mock.recorder = &MockCapturesGetterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCapturesGetter) EXPECT() *MockCapturesGetterMockRecorder {
return m.recorder
}
// Captures mocks base method.
func (m *MockCapturesGetter) Captures() v2.CaptureInterface {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Captures")
ret0, _ := ret[0].(v2.CaptureInterface)
return ret0
}
// Captures indicates an expected call of Captures.
func (mr *MockCapturesGetterMockRecorder) Captures() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Captures", reflect.TypeOf((*MockCapturesGetter)(nil).Captures))
}
// MockCaptureInterface is a mock of CaptureInterface interface.
type MockCaptureInterface struct {
ctrl *gomock.Controller
recorder *MockCaptureInterfaceMockRecorder
}
// MockCaptureInterfaceMockRecorder is the mock recorder for MockCaptureInterface.
type MockCaptureInterfaceMockRecorder struct {
mock *MockCaptureInterface
}
// NewMockCaptureInterface creates a new mock instance.
func NewMockCaptureInterface(ctrl *gomock.Controller) *MockCaptureInterface {
mock := &MockCaptureInterface{ctrl: ctrl}
mock.recorder = &MockCaptureInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCaptureInterface) EXPECT() *MockCaptureInterfaceMockRecorder {
return m.recorder
}
// List mocks base method.
func (m *MockCaptureInterface) List(ctx context.Context) ([]model.Capture, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "List", ctx)
ret0, _ := ret[0].([]model.Capture)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// List indicates an expected call of List.
func (mr *MockCaptureInterfaceMockRecorder) List(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockCaptureInterface)(nil).List), ctx)
}