github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/pkg/api/v2/mock/tso_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: pkg/api/v2/tso.go 3 4 // Package mock is a generated GoMock package. 5 package mock 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 v2 "github.com/pingcap/tiflow/cdc/api/v2" 13 v20 "github.com/pingcap/tiflow/pkg/api/v2" 14 ) 15 16 // MockTsoGetter is a mock of TsoGetter interface. 17 type MockTsoGetter struct { 18 ctrl *gomock.Controller 19 recorder *MockTsoGetterMockRecorder 20 } 21 22 // MockTsoGetterMockRecorder is the mock recorder for MockTsoGetter. 23 type MockTsoGetterMockRecorder struct { 24 mock *MockTsoGetter 25 } 26 27 // NewMockTsoGetter creates a new mock instance. 28 func NewMockTsoGetter(ctrl *gomock.Controller) *MockTsoGetter { 29 mock := &MockTsoGetter{ctrl: ctrl} 30 mock.recorder = &MockTsoGetterMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockTsoGetter) EXPECT() *MockTsoGetterMockRecorder { 36 return m.recorder 37 } 38 39 // Tso mocks base method. 40 func (m *MockTsoGetter) Tso() v20.TsoInterface { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "Tso") 43 ret0, _ := ret[0].(v20.TsoInterface) 44 return ret0 45 } 46 47 // Tso indicates an expected call of Tso. 48 func (mr *MockTsoGetterMockRecorder) Tso() *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tso", reflect.TypeOf((*MockTsoGetter)(nil).Tso)) 51 } 52 53 // MockTsoInterface is a mock of TsoInterface interface. 54 type MockTsoInterface struct { 55 ctrl *gomock.Controller 56 recorder *MockTsoInterfaceMockRecorder 57 } 58 59 // MockTsoInterfaceMockRecorder is the mock recorder for MockTsoInterface. 60 type MockTsoInterfaceMockRecorder struct { 61 mock *MockTsoInterface 62 } 63 64 // NewMockTsoInterface creates a new mock instance. 65 func NewMockTsoInterface(ctrl *gomock.Controller) *MockTsoInterface { 66 mock := &MockTsoInterface{ctrl: ctrl} 67 mock.recorder = &MockTsoInterfaceMockRecorder{mock} 68 return mock 69 } 70 71 // EXPECT returns an object that allows the caller to indicate expected use. 72 func (m *MockTsoInterface) EXPECT() *MockTsoInterfaceMockRecorder { 73 return m.recorder 74 } 75 76 // Query mocks base method. 77 func (m *MockTsoInterface) Query(ctx context.Context, config *v2.UpstreamConfig) (*v2.Tso, error) { 78 m.ctrl.T.Helper() 79 ret := m.ctrl.Call(m, "Query", ctx, config) 80 ret0, _ := ret[0].(*v2.Tso) 81 ret1, _ := ret[1].(error) 82 return ret0, ret1 83 } 84 85 // Query indicates an expected call of Query. 86 func (mr *MockTsoInterfaceMockRecorder) Query(ctx, config interface{}) *gomock.Call { 87 mr.mock.ctrl.T.Helper() 88 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockTsoInterface)(nil).Query), ctx, config) 89 }