github.com/pingcap/br@v5.3.0-alpha.0.20220125034240-ec59c7b6ce30+incompatible/pkg/mock/kv.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/pingcap/br/pkg/lightning/backend/kv (interfaces: Encoder,Rows,Row)
     3  
     4  // $ mockgen -package mock github.com/pingcap/br/pkg/lightning/backend/kv Encoder,Rows,Row
     5  
     6  // Package mock is a generated GoMock package.
     7  package mock
     8  
     9  import (
    10  	reflect "reflect"
    11  
    12  	gomock "github.com/golang/mock/gomock"
    13  	kv "github.com/pingcap/br/pkg/lightning/backend/kv"
    14  	log "github.com/pingcap/br/pkg/lightning/log"
    15  	verification "github.com/pingcap/br/pkg/lightning/verification"
    16  	types "github.com/pingcap/tidb/types"
    17  )
    18  
    19  // MockEncoder is a mock of Encoder interface.
    20  type MockEncoder struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockEncoderMockRecorder
    23  }
    24  
    25  // MockEncoderMockRecorder is the mock recorder for MockEncoder.
    26  type MockEncoderMockRecorder struct {
    27  	mock *MockEncoder
    28  }
    29  
    30  // NewMockEncoder creates a new mock instance.
    31  func NewMockEncoder(ctrl *gomock.Controller) *MockEncoder {
    32  	mock := &MockEncoder{ctrl: ctrl}
    33  	mock.recorder = &MockEncoderMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockEncoder) EXPECT() *MockEncoderMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // Close mocks base method.
    43  func (m *MockEncoder) Close() {
    44  	m.ctrl.T.Helper()
    45  	m.ctrl.Call(m, "Close")
    46  }
    47  
    48  // Close indicates an expected call of Close.
    49  func (mr *MockEncoderMockRecorder) Close() *gomock.Call {
    50  	mr.mock.ctrl.T.Helper()
    51  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockEncoder)(nil).Close))
    52  }
    53  
    54  // Encode mocks base method.
    55  func (m *MockEncoder) Encode(arg0 log.Logger, arg1 []types.Datum, arg2 int64, arg3 []int, arg4 int64) (kv.Row, error) {
    56  	m.ctrl.T.Helper()
    57  	ret := m.ctrl.Call(m, "Encode", arg0, arg1, arg2, arg3, arg4)
    58  	ret0, _ := ret[0].(kv.Row)
    59  	ret1, _ := ret[1].(error)
    60  	return ret0, ret1
    61  }
    62  
    63  // Encode indicates an expected call of Encode.
    64  func (mr *MockEncoderMockRecorder) Encode(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Encode", reflect.TypeOf((*MockEncoder)(nil).Encode), arg0, arg1, arg2, arg3, arg4)
    67  }
    68  
    69  // MockRows is a mock of Rows interface.
    70  type MockRows struct {
    71  	ctrl     *gomock.Controller
    72  	recorder *MockRowsMockRecorder
    73  }
    74  
    75  // MockRowsMockRecorder is the mock recorder for MockRows.
    76  type MockRowsMockRecorder struct {
    77  	mock *MockRows
    78  }
    79  
    80  // NewMockRows creates a new mock instance.
    81  func NewMockRows(ctrl *gomock.Controller) *MockRows {
    82  	mock := &MockRows{ctrl: ctrl}
    83  	mock.recorder = &MockRowsMockRecorder{mock}
    84  	return mock
    85  }
    86  
    87  // EXPECT returns an object that allows the caller to indicate expected use.
    88  func (m *MockRows) EXPECT() *MockRowsMockRecorder {
    89  	return m.recorder
    90  }
    91  
    92  // Clear mocks base method.
    93  func (m *MockRows) Clear() kv.Rows {
    94  	m.ctrl.T.Helper()
    95  	ret := m.ctrl.Call(m, "Clear")
    96  	ret0, _ := ret[0].(kv.Rows)
    97  	return ret0
    98  }
    99  
   100  // Clear indicates an expected call of Clear.
   101  func (mr *MockRowsMockRecorder) Clear() *gomock.Call {
   102  	mr.mock.ctrl.T.Helper()
   103  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockRows)(nil).Clear))
   104  }
   105  
   106  // SplitIntoChunks mocks base method.
   107  func (m *MockRows) SplitIntoChunks(arg0 int) []kv.Rows {
   108  	m.ctrl.T.Helper()
   109  	ret := m.ctrl.Call(m, "SplitIntoChunks", arg0)
   110  	ret0, _ := ret[0].([]kv.Rows)
   111  	return ret0
   112  }
   113  
   114  // SplitIntoChunks indicates an expected call of SplitIntoChunks.
   115  func (mr *MockRowsMockRecorder) SplitIntoChunks(arg0 interface{}) *gomock.Call {
   116  	mr.mock.ctrl.T.Helper()
   117  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SplitIntoChunks", reflect.TypeOf((*MockRows)(nil).SplitIntoChunks), arg0)
   118  }
   119  
   120  // MockRow is a mock of Row interface.
   121  type MockRow struct {
   122  	ctrl     *gomock.Controller
   123  	recorder *MockRowMockRecorder
   124  }
   125  
   126  // MockRowMockRecorder is the mock recorder for MockRow.
   127  type MockRowMockRecorder struct {
   128  	mock *MockRow
   129  }
   130  
   131  // NewMockRow creates a new mock instance.
   132  func NewMockRow(ctrl *gomock.Controller) *MockRow {
   133  	mock := &MockRow{ctrl: ctrl}
   134  	mock.recorder = &MockRowMockRecorder{mock}
   135  	return mock
   136  }
   137  
   138  // EXPECT returns an object that allows the caller to indicate expected use.
   139  func (m *MockRow) EXPECT() *MockRowMockRecorder {
   140  	return m.recorder
   141  }
   142  
   143  // ClassifyAndAppend mocks base method.
   144  func (m *MockRow) ClassifyAndAppend(arg0 *kv.Rows, arg1 *verification.KVChecksum, arg2 *kv.Rows, arg3 *verification.KVChecksum) {
   145  	m.ctrl.T.Helper()
   146  	m.ctrl.Call(m, "ClassifyAndAppend", arg0, arg1, arg2, arg3)
   147  }
   148  
   149  // ClassifyAndAppend indicates an expected call of ClassifyAndAppend.
   150  func (mr *MockRowMockRecorder) ClassifyAndAppend(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   151  	mr.mock.ctrl.T.Helper()
   152  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClassifyAndAppend", reflect.TypeOf((*MockRow)(nil).ClassifyAndAppend), arg0, arg1, arg2, arg3)
   153  }