github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/engine/servermaster/jobop/mock/joboperator_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/pingcap/tiflow/engine/servermaster/jobop (interfaces: JobOperator)
     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  )
    13  
    14  // MockJobOperator is a mock of JobOperator interface.
    15  type MockJobOperator struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockJobOperatorMockRecorder
    18  }
    19  
    20  // MockJobOperatorMockRecorder is the mock recorder for MockJobOperator.
    21  type MockJobOperatorMockRecorder struct {
    22  	mock *MockJobOperator
    23  }
    24  
    25  // NewMockJobOperator creates a new mock instance.
    26  func NewMockJobOperator(ctrl *gomock.Controller) *MockJobOperator {
    27  	mock := &MockJobOperator{ctrl: ctrl}
    28  	mock.recorder = &MockJobOperatorMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockJobOperator) EXPECT() *MockJobOperatorMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // IsJobCanceling mocks base method.
    38  func (m *MockJobOperator) IsJobCanceling(arg0 context.Context, arg1 string) bool {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "IsJobCanceling", arg0, arg1)
    41  	ret0, _ := ret[0].(bool)
    42  	return ret0
    43  }
    44  
    45  // IsJobCanceling indicates an expected call of IsJobCanceling.
    46  func (mr *MockJobOperatorMockRecorder) IsJobCanceling(arg0, arg1 interface{}) *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsJobCanceling", reflect.TypeOf((*MockJobOperator)(nil).IsJobCanceling), arg0, arg1)
    49  }
    50  
    51  // MarkJobCanceled mocks base method.
    52  func (m *MockJobOperator) MarkJobCanceled(arg0 context.Context, arg1 string) error {
    53  	m.ctrl.T.Helper()
    54  	ret := m.ctrl.Call(m, "MarkJobCanceled", arg0, arg1)
    55  	ret0, _ := ret[0].(error)
    56  	return ret0
    57  }
    58  
    59  // MarkJobCanceled indicates an expected call of MarkJobCanceled.
    60  func (mr *MockJobOperatorMockRecorder) MarkJobCanceled(arg0, arg1 interface{}) *gomock.Call {
    61  	mr.mock.ctrl.T.Helper()
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkJobCanceled", reflect.TypeOf((*MockJobOperator)(nil).MarkJobCanceled), arg0, arg1)
    63  }
    64  
    65  // MarkJobCanceling mocks base method.
    66  func (m *MockJobOperator) MarkJobCanceling(arg0 context.Context, arg1 string) error {
    67  	m.ctrl.T.Helper()
    68  	ret := m.ctrl.Call(m, "MarkJobCanceling", arg0, arg1)
    69  	ret0, _ := ret[0].(error)
    70  	return ret0
    71  }
    72  
    73  // MarkJobCanceling indicates an expected call of MarkJobCanceling.
    74  func (mr *MockJobOperatorMockRecorder) MarkJobCanceling(arg0, arg1 interface{}) *gomock.Call {
    75  	mr.mock.ctrl.T.Helper()
    76  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkJobCanceling", reflect.TypeOf((*MockJobOperator)(nil).MarkJobCanceling), arg0, arg1)
    77  }
    78  
    79  // Tick mocks base method.
    80  func (m *MockJobOperator) Tick(arg0 context.Context) error {
    81  	m.ctrl.T.Helper()
    82  	ret := m.ctrl.Call(m, "Tick", arg0)
    83  	ret0, _ := ret[0].(error)
    84  	return ret0
    85  }
    86  
    87  // Tick indicates an expected call of Tick.
    88  func (mr *MockJobOperatorMockRecorder) Tick(arg0 interface{}) *gomock.Call {
    89  	mr.mock.ctrl.T.Helper()
    90  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tick", reflect.TypeOf((*MockJobOperator)(nil).Tick), arg0)
    91  }