github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/cdc/controller/mock/controller_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: cdc/controller/controller.go 3 4 // Package mock_controller is a generated GoMock package. 5 package mock_controller 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 model "github.com/pingcap/tiflow/cdc/model" 13 ) 14 15 // MockController is a mock of Controller interface. 16 type MockController struct { 17 ctrl *gomock.Controller 18 recorder *MockControllerMockRecorder 19 } 20 21 // MockControllerMockRecorder is the mock recorder for MockController. 22 type MockControllerMockRecorder struct { 23 mock *MockController 24 } 25 26 // NewMockController creates a new mock instance. 27 func NewMockController(ctrl *gomock.Controller) *MockController { 28 mock := &MockController{ctrl: ctrl} 29 mock.recorder = &MockControllerMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockController) EXPECT() *MockControllerMockRecorder { 35 return m.recorder 36 } 37 38 // AsyncStop mocks base method. 39 func (m *MockController) AsyncStop() { 40 m.ctrl.T.Helper() 41 m.ctrl.Call(m, "AsyncStop") 42 } 43 44 // AsyncStop indicates an expected call of AsyncStop. 45 func (mr *MockControllerMockRecorder) AsyncStop() *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AsyncStop", reflect.TypeOf((*MockController)(nil).AsyncStop)) 48 } 49 50 // CreateChangefeed mocks base method. 51 func (m *MockController) CreateChangefeed(arg0 context.Context, arg1 *model.UpstreamInfo, arg2 *model.ChangeFeedInfo) error { 52 m.ctrl.T.Helper() 53 ret := m.ctrl.Call(m, "CreateChangefeed", arg0, arg1, arg2) 54 ret0, _ := ret[0].(error) 55 return ret0 56 } 57 58 // CreateChangefeed indicates an expected call of CreateChangefeed. 59 func (mr *MockControllerMockRecorder) CreateChangefeed(arg0, arg1, arg2 interface{}) *gomock.Call { 60 mr.mock.ctrl.T.Helper() 61 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateChangefeed", reflect.TypeOf((*MockController)(nil).CreateChangefeed), arg0, arg1, arg2) 62 } 63 64 // GetAllChangeFeedCheckpointTs mocks base method. 65 func (m *MockController) GetAllChangeFeedCheckpointTs(ctx context.Context) (map[model.ChangeFeedID]uint64, error) { 66 m.ctrl.T.Helper() 67 ret := m.ctrl.Call(m, "GetAllChangeFeedCheckpointTs", ctx) 68 ret0, _ := ret[0].(map[model.ChangeFeedID]uint64) 69 ret1, _ := ret[1].(error) 70 return ret0, ret1 71 } 72 73 // GetAllChangeFeedCheckpointTs indicates an expected call of GetAllChangeFeedCheckpointTs. 74 func (mr *MockControllerMockRecorder) GetAllChangeFeedCheckpointTs(ctx interface{}) *gomock.Call { 75 mr.mock.ctrl.T.Helper() 76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllChangeFeedCheckpointTs", reflect.TypeOf((*MockController)(nil).GetAllChangeFeedCheckpointTs), ctx) 77 } 78 79 // GetAllChangeFeedInfo mocks base method. 80 func (m *MockController) GetAllChangeFeedInfo(ctx context.Context) (map[model.ChangeFeedID]*model.ChangeFeedInfo, error) { 81 m.ctrl.T.Helper() 82 ret := m.ctrl.Call(m, "GetAllChangeFeedInfo", ctx) 83 ret0, _ := ret[0].(map[model.ChangeFeedID]*model.ChangeFeedInfo) 84 ret1, _ := ret[1].(error) 85 return ret0, ret1 86 } 87 88 // GetAllChangeFeedInfo indicates an expected call of GetAllChangeFeedInfo. 89 func (mr *MockControllerMockRecorder) GetAllChangeFeedInfo(ctx interface{}) *gomock.Call { 90 mr.mock.ctrl.T.Helper() 91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllChangeFeedInfo", reflect.TypeOf((*MockController)(nil).GetAllChangeFeedInfo), ctx) 92 } 93 94 // GetCaptures mocks base method. 95 func (m *MockController) GetCaptures(ctx context.Context) ([]*model.CaptureInfo, error) { 96 m.ctrl.T.Helper() 97 ret := m.ctrl.Call(m, "GetCaptures", ctx) 98 ret0, _ := ret[0].([]*model.CaptureInfo) 99 ret1, _ := ret[1].(error) 100 return ret0, ret1 101 } 102 103 // GetCaptures indicates an expected call of GetCaptures. 104 func (mr *MockControllerMockRecorder) GetCaptures(ctx interface{}) *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCaptures", reflect.TypeOf((*MockController)(nil).GetCaptures), ctx) 107 } 108 109 // GetChangefeedOwnerCaptureInfo mocks base method. 110 func (m *MockController) GetChangefeedOwnerCaptureInfo(id model.ChangeFeedID) *model.CaptureInfo { 111 m.ctrl.T.Helper() 112 ret := m.ctrl.Call(m, "GetChangefeedOwnerCaptureInfo", id) 113 ret0, _ := ret[0].(*model.CaptureInfo) 114 return ret0 115 } 116 117 // GetChangefeedOwnerCaptureInfo indicates an expected call of GetChangefeedOwnerCaptureInfo. 118 func (mr *MockControllerMockRecorder) GetChangefeedOwnerCaptureInfo(id interface{}) *gomock.Call { 119 mr.mock.ctrl.T.Helper() 120 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChangefeedOwnerCaptureInfo", reflect.TypeOf((*MockController)(nil).GetChangefeedOwnerCaptureInfo), id) 121 } 122 123 // GetProcessors mocks base method. 124 func (m *MockController) GetProcessors(ctx context.Context) ([]*model.ProcInfoSnap, error) { 125 m.ctrl.T.Helper() 126 ret := m.ctrl.Call(m, "GetProcessors", ctx) 127 ret0, _ := ret[0].([]*model.ProcInfoSnap) 128 ret1, _ := ret[1].(error) 129 return ret0, ret1 130 } 131 132 // GetProcessors indicates an expected call of GetProcessors. 133 func (mr *MockControllerMockRecorder) GetProcessors(ctx interface{}) *gomock.Call { 134 mr.mock.ctrl.T.Helper() 135 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProcessors", reflect.TypeOf((*MockController)(nil).GetProcessors), ctx) 136 } 137 138 // IsChangefeedExists mocks base method. 139 func (m *MockController) IsChangefeedExists(ctx context.Context, id model.ChangeFeedID) (bool, error) { 140 m.ctrl.T.Helper() 141 ret := m.ctrl.Call(m, "IsChangefeedExists", ctx, id) 142 ret0, _ := ret[0].(bool) 143 ret1, _ := ret[1].(error) 144 return ret0, ret1 145 } 146 147 // IsChangefeedExists indicates an expected call of IsChangefeedExists. 148 func (mr *MockControllerMockRecorder) IsChangefeedExists(ctx, id interface{}) *gomock.Call { 149 mr.mock.ctrl.T.Helper() 150 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsChangefeedExists", reflect.TypeOf((*MockController)(nil).IsChangefeedExists), ctx, id) 151 }