github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/cdc/processor/mock/manager_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: cdc/processor/manager.go
     3  
     4  // Package mock_processor is a generated GoMock package.
     5  package mock_processor
     6  
     7  import (
     8  	context "context"
     9  	io "io"
    10  	reflect "reflect"
    11  
    12  	gomock "github.com/golang/mock/gomock"
    13  	orchestrator "github.com/pingcap/tiflow/pkg/orchestrator"
    14  )
    15  
    16  // MockManager is a mock of Manager interface.
    17  type MockManager struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockManagerMockRecorder
    20  }
    21  
    22  // MockManagerMockRecorder is the mock recorder for MockManager.
    23  type MockManagerMockRecorder struct {
    24  	mock *MockManager
    25  }
    26  
    27  // NewMockManager creates a new mock instance.
    28  func NewMockManager(ctrl *gomock.Controller) *MockManager {
    29  	mock := &MockManager{ctrl: ctrl}
    30  	mock.recorder = &MockManagerMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockManager) EXPECT() *MockManagerMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // Close mocks base method.
    40  func (m *MockManager) Close() {
    41  	m.ctrl.T.Helper()
    42  	m.ctrl.Call(m, "Close")
    43  }
    44  
    45  // Close indicates an expected call of Close.
    46  func (mr *MockManagerMockRecorder) Close() *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockManager)(nil).Close))
    49  }
    50  
    51  // Tick mocks base method.
    52  func (m *MockManager) Tick(ctx context.Context, state orchestrator.ReactorState) (orchestrator.ReactorState, error) {
    53  	m.ctrl.T.Helper()
    54  	ret := m.ctrl.Call(m, "Tick", ctx, state)
    55  	ret0, _ := ret[0].(orchestrator.ReactorState)
    56  	ret1, _ := ret[1].(error)
    57  	return ret0, ret1
    58  }
    59  
    60  // Tick indicates an expected call of Tick.
    61  func (mr *MockManagerMockRecorder) Tick(ctx, state interface{}) *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tick", reflect.TypeOf((*MockManager)(nil).Tick), ctx, state)
    64  }
    65  
    66  // WriteDebugInfo mocks base method.
    67  func (m *MockManager) WriteDebugInfo(ctx context.Context, w io.Writer, done chan<- error) {
    68  	m.ctrl.T.Helper()
    69  	m.ctrl.Call(m, "WriteDebugInfo", ctx, w, done)
    70  }
    71  
    72  // WriteDebugInfo indicates an expected call of WriteDebugInfo.
    73  func (mr *MockManagerMockRecorder) WriteDebugInfo(ctx, w, done interface{}) *gomock.Call {
    74  	mr.mock.ctrl.T.Helper()
    75  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteDebugInfo", reflect.TypeOf((*MockManager)(nil).WriteDebugInfo), ctx, w, done)
    76  }