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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: pkg/api/v2/unsafe.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  // MockUnsafeGetter is a mock of UnsafeGetter interface.
    17  type MockUnsafeGetter struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockUnsafeGetterMockRecorder
    20  }
    21  
    22  // MockUnsafeGetterMockRecorder is the mock recorder for MockUnsafeGetter.
    23  type MockUnsafeGetterMockRecorder struct {
    24  	mock *MockUnsafeGetter
    25  }
    26  
    27  // NewMockUnsafeGetter creates a new mock instance.
    28  func NewMockUnsafeGetter(ctrl *gomock.Controller) *MockUnsafeGetter {
    29  	mock := &MockUnsafeGetter{ctrl: ctrl}
    30  	mock.recorder = &MockUnsafeGetterMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockUnsafeGetter) EXPECT() *MockUnsafeGetterMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // Unsafe mocks base method.
    40  func (m *MockUnsafeGetter) Unsafe() v20.UnsafeInterface {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "Unsafe")
    43  	ret0, _ := ret[0].(v20.UnsafeInterface)
    44  	return ret0
    45  }
    46  
    47  // Unsafe indicates an expected call of Unsafe.
    48  func (mr *MockUnsafeGetterMockRecorder) Unsafe() *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unsafe", reflect.TypeOf((*MockUnsafeGetter)(nil).Unsafe))
    51  }
    52  
    53  // MockUnsafeInterface is a mock of UnsafeInterface interface.
    54  type MockUnsafeInterface struct {
    55  	ctrl     *gomock.Controller
    56  	recorder *MockUnsafeInterfaceMockRecorder
    57  }
    58  
    59  // MockUnsafeInterfaceMockRecorder is the mock recorder for MockUnsafeInterface.
    60  type MockUnsafeInterfaceMockRecorder struct {
    61  	mock *MockUnsafeInterface
    62  }
    63  
    64  // NewMockUnsafeInterface creates a new mock instance.
    65  func NewMockUnsafeInterface(ctrl *gomock.Controller) *MockUnsafeInterface {
    66  	mock := &MockUnsafeInterface{ctrl: ctrl}
    67  	mock.recorder = &MockUnsafeInterfaceMockRecorder{mock}
    68  	return mock
    69  }
    70  
    71  // EXPECT returns an object that allows the caller to indicate expected use.
    72  func (m *MockUnsafeInterface) EXPECT() *MockUnsafeInterfaceMockRecorder {
    73  	return m.recorder
    74  }
    75  
    76  // DeleteServiceGcSafePoint mocks base method.
    77  func (m *MockUnsafeInterface) DeleteServiceGcSafePoint(ctx context.Context, config *v2.UpstreamConfig) error {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "DeleteServiceGcSafePoint", ctx, config)
    80  	ret0, _ := ret[0].(error)
    81  	return ret0
    82  }
    83  
    84  // DeleteServiceGcSafePoint indicates an expected call of DeleteServiceGcSafePoint.
    85  func (mr *MockUnsafeInterfaceMockRecorder) DeleteServiceGcSafePoint(ctx, config interface{}) *gomock.Call {
    86  	mr.mock.ctrl.T.Helper()
    87  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceGcSafePoint", reflect.TypeOf((*MockUnsafeInterface)(nil).DeleteServiceGcSafePoint), ctx, config)
    88  }
    89  
    90  // Metadata mocks base method.
    91  func (m *MockUnsafeInterface) Metadata(ctx context.Context) (*[]v2.EtcdData, error) {
    92  	m.ctrl.T.Helper()
    93  	ret := m.ctrl.Call(m, "Metadata", ctx)
    94  	ret0, _ := ret[0].(*[]v2.EtcdData)
    95  	ret1, _ := ret[1].(error)
    96  	return ret0, ret1
    97  }
    98  
    99  // Metadata indicates an expected call of Metadata.
   100  func (mr *MockUnsafeInterfaceMockRecorder) Metadata(ctx interface{}) *gomock.Call {
   101  	mr.mock.ctrl.T.Helper()
   102  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Metadata", reflect.TypeOf((*MockUnsafeInterface)(nil).Metadata), ctx)
   103  }
   104  
   105  // ResolveLock mocks base method.
   106  func (m *MockUnsafeInterface) ResolveLock(ctx context.Context, req *v2.ResolveLockReq) error {
   107  	m.ctrl.T.Helper()
   108  	ret := m.ctrl.Call(m, "ResolveLock", ctx, req)
   109  	ret0, _ := ret[0].(error)
   110  	return ret0
   111  }
   112  
   113  // ResolveLock indicates an expected call of ResolveLock.
   114  func (mr *MockUnsafeInterfaceMockRecorder) ResolveLock(ctx, req interface{}) *gomock.Call {
   115  	mr.mock.ctrl.T.Helper()
   116  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveLock", reflect.TypeOf((*MockUnsafeInterface)(nil).ResolveLock), ctx, req)
   117  }