github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/pkg/api/v2/mock/processor_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: pkg/api/v2/processor.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  // MockProcessorsGetter is a mock of ProcessorsGetter interface.
    17  type MockProcessorsGetter struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockProcessorsGetterMockRecorder
    20  }
    21  
    22  // MockProcessorsGetterMockRecorder is the mock recorder for MockProcessorsGetter.
    23  type MockProcessorsGetterMockRecorder struct {
    24  	mock *MockProcessorsGetter
    25  }
    26  
    27  // NewMockProcessorsGetter creates a new mock instance.
    28  func NewMockProcessorsGetter(ctrl *gomock.Controller) *MockProcessorsGetter {
    29  	mock := &MockProcessorsGetter{ctrl: ctrl}
    30  	mock.recorder = &MockProcessorsGetterMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockProcessorsGetter) EXPECT() *MockProcessorsGetterMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // Processors mocks base method.
    40  func (m *MockProcessorsGetter) Processors() v20.ProcessorInterface {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "Processors")
    43  	ret0, _ := ret[0].(v20.ProcessorInterface)
    44  	return ret0
    45  }
    46  
    47  // Processors indicates an expected call of Processors.
    48  func (mr *MockProcessorsGetterMockRecorder) Processors() *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Processors", reflect.TypeOf((*MockProcessorsGetter)(nil).Processors))
    51  }
    52  
    53  // MockProcessorInterface is a mock of ProcessorInterface interface.
    54  type MockProcessorInterface struct {
    55  	ctrl     *gomock.Controller
    56  	recorder *MockProcessorInterfaceMockRecorder
    57  }
    58  
    59  // MockProcessorInterfaceMockRecorder is the mock recorder for MockProcessorInterface.
    60  type MockProcessorInterfaceMockRecorder struct {
    61  	mock *MockProcessorInterface
    62  }
    63  
    64  // NewMockProcessorInterface creates a new mock instance.
    65  func NewMockProcessorInterface(ctrl *gomock.Controller) *MockProcessorInterface {
    66  	mock := &MockProcessorInterface{ctrl: ctrl}
    67  	mock.recorder = &MockProcessorInterfaceMockRecorder{mock}
    68  	return mock
    69  }
    70  
    71  // EXPECT returns an object that allows the caller to indicate expected use.
    72  func (m *MockProcessorInterface) EXPECT() *MockProcessorInterfaceMockRecorder {
    73  	return m.recorder
    74  }
    75  
    76  // Get mocks base method.
    77  func (m *MockProcessorInterface) Get(ctx context.Context, namespace, changefeedID, captureID string) (*v2.ProcessorDetail, error) {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "Get", ctx, namespace, changefeedID, captureID)
    80  	ret0, _ := ret[0].(*v2.ProcessorDetail)
    81  	ret1, _ := ret[1].(error)
    82  	return ret0, ret1
    83  }
    84  
    85  // Get indicates an expected call of Get.
    86  func (mr *MockProcessorInterfaceMockRecorder) Get(ctx, namespace, changefeedID, captureID interface{}) *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockProcessorInterface)(nil).Get), ctx, namespace, changefeedID, captureID)
    89  }
    90  
    91  // List mocks base method.
    92  func (m *MockProcessorInterface) List(ctx context.Context) ([]v2.ProcessorCommonInfo, error) {
    93  	m.ctrl.T.Helper()
    94  	ret := m.ctrl.Call(m, "List", ctx)
    95  	ret0, _ := ret[0].([]v2.ProcessorCommonInfo)
    96  	ret1, _ := ret[1].(error)
    97  	return ret0, ret1
    98  }
    99  
   100  // List indicates an expected call of List.
   101  func (mr *MockProcessorInterfaceMockRecorder) List(ctx interface{}) *gomock.Call {
   102  	mr.mock.ctrl.T.Helper()
   103  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockProcessorInterface)(nil).List), ctx)
   104  }