github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/engine/servermaster/jobop/mock/backoffmanager_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/pingcap/tiflow/engine/servermaster/jobop (interfaces: BackoffManager) 3 4 // Package mock is a generated GoMock package. 5 package mock 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 ) 12 13 // MockBackoffManager is a mock of BackoffManager interface. 14 type MockBackoffManager struct { 15 ctrl *gomock.Controller 16 recorder *MockBackoffManagerMockRecorder 17 } 18 19 // MockBackoffManagerMockRecorder is the mock recorder for MockBackoffManager. 20 type MockBackoffManagerMockRecorder struct { 21 mock *MockBackoffManager 22 } 23 24 // NewMockBackoffManager creates a new mock instance. 25 func NewMockBackoffManager(ctrl *gomock.Controller) *MockBackoffManager { 26 mock := &MockBackoffManager{ctrl: ctrl} 27 mock.recorder = &MockBackoffManagerMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use. 32 func (m *MockBackoffManager) EXPECT() *MockBackoffManagerMockRecorder { 33 return m.recorder 34 } 35 36 // Allow mocks base method. 37 func (m *MockBackoffManager) Allow(arg0 string) bool { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "Allow", arg0) 40 ret0, _ := ret[0].(bool) 41 return ret0 42 } 43 44 // Allow indicates an expected call of Allow. 45 func (mr *MockBackoffManagerMockRecorder) Allow(arg0 interface{}) *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Allow", reflect.TypeOf((*MockBackoffManager)(nil).Allow), arg0) 48 } 49 50 // JobFail mocks base method. 51 func (m *MockBackoffManager) JobFail(arg0 string) { 52 m.ctrl.T.Helper() 53 m.ctrl.Call(m, "JobFail", arg0) 54 } 55 56 // JobFail indicates an expected call of JobFail. 57 func (mr *MockBackoffManagerMockRecorder) JobFail(arg0 interface{}) *gomock.Call { 58 mr.mock.ctrl.T.Helper() 59 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "JobFail", reflect.TypeOf((*MockBackoffManager)(nil).JobFail), arg0) 60 } 61 62 // JobOnline mocks base method. 63 func (m *MockBackoffManager) JobOnline(arg0 string) { 64 m.ctrl.T.Helper() 65 m.ctrl.Call(m, "JobOnline", arg0) 66 } 67 68 // JobOnline indicates an expected call of JobOnline. 69 func (mr *MockBackoffManagerMockRecorder) JobOnline(arg0 interface{}) *gomock.Call { 70 mr.mock.ctrl.T.Helper() 71 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "JobOnline", reflect.TypeOf((*MockBackoffManager)(nil).JobOnline), arg0) 72 } 73 74 // JobTerminate mocks base method. 75 func (m *MockBackoffManager) JobTerminate(arg0 string) { 76 m.ctrl.T.Helper() 77 m.ctrl.Call(m, "JobTerminate", arg0) 78 } 79 80 // JobTerminate indicates an expected call of JobTerminate. 81 func (mr *MockBackoffManagerMockRecorder) JobTerminate(arg0 interface{}) *gomock.Call { 82 mr.mock.ctrl.T.Helper() 83 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "JobTerminate", reflect.TypeOf((*MockBackoffManager)(nil).JobTerminate), arg0) 84 } 85 86 // Terminate mocks base method. 87 func (m *MockBackoffManager) Terminate(arg0 string) bool { 88 m.ctrl.T.Helper() 89 ret := m.ctrl.Call(m, "Terminate", arg0) 90 ret0, _ := ret[0].(bool) 91 return ret0 92 } 93 94 // Terminate indicates an expected call of Terminate. 95 func (mr *MockBackoffManagerMockRecorder) Terminate(arg0 interface{}) *gomock.Call { 96 mr.mock.ctrl.T.Helper() 97 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Terminate", reflect.TypeOf((*MockBackoffManager)(nil).Terminate), arg0) 98 }