github.com/tsuna/gohbase@v0.0.0-20250731002811-4ffcadfba63e/test/mock/region/client.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/tsuna/gohbase/hrpc (interfaces: RegionClient)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -destination=region/client.go -package=mock github.com/tsuna/gohbase/hrpc RegionClient
     7  //
     8  
     9  // Package mock is a generated GoMock package.
    10  package mock
    11  
    12  import (
    13  	context "context"
    14  	reflect "reflect"
    15  
    16  	hrpc "github.com/tsuna/gohbase/hrpc"
    17  	gomock "go.uber.org/mock/gomock"
    18  )
    19  
    20  // MockRegionClient is a mock of RegionClient interface.
    21  type MockRegionClient struct {
    22  	ctrl     *gomock.Controller
    23  	recorder *MockRegionClientMockRecorder
    24  }
    25  
    26  // MockRegionClientMockRecorder is the mock recorder for MockRegionClient.
    27  type MockRegionClientMockRecorder struct {
    28  	mock *MockRegionClient
    29  }
    30  
    31  // NewMockRegionClient creates a new mock instance.
    32  func NewMockRegionClient(ctrl *gomock.Controller) *MockRegionClient {
    33  	mock := &MockRegionClient{ctrl: ctrl}
    34  	mock.recorder = &MockRegionClientMockRecorder{mock}
    35  	return mock
    36  }
    37  
    38  // EXPECT returns an object that allows the caller to indicate expected use.
    39  func (m *MockRegionClient) EXPECT() *MockRegionClientMockRecorder {
    40  	return m.recorder
    41  }
    42  
    43  // Addr mocks base method.
    44  func (m *MockRegionClient) Addr() string {
    45  	m.ctrl.T.Helper()
    46  	ret := m.ctrl.Call(m, "Addr")
    47  	ret0, _ := ret[0].(string)
    48  	return ret0
    49  }
    50  
    51  // Addr indicates an expected call of Addr.
    52  func (mr *MockRegionClientMockRecorder) Addr() *gomock.Call {
    53  	mr.mock.ctrl.T.Helper()
    54  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Addr", reflect.TypeOf((*MockRegionClient)(nil).Addr))
    55  }
    56  
    57  // Close mocks base method.
    58  func (m *MockRegionClient) Close() {
    59  	m.ctrl.T.Helper()
    60  	m.ctrl.Call(m, "Close")
    61  }
    62  
    63  // Close indicates an expected call of Close.
    64  func (mr *MockRegionClientMockRecorder) Close() *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockRegionClient)(nil).Close))
    67  }
    68  
    69  // Dial mocks base method.
    70  func (m *MockRegionClient) Dial(arg0 context.Context) error {
    71  	m.ctrl.T.Helper()
    72  	ret := m.ctrl.Call(m, "Dial", arg0)
    73  	ret0, _ := ret[0].(error)
    74  	return ret0
    75  }
    76  
    77  // Dial indicates an expected call of Dial.
    78  func (mr *MockRegionClientMockRecorder) Dial(arg0 any) *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Dial", reflect.TypeOf((*MockRegionClient)(nil).Dial), arg0)
    81  }
    82  
    83  // QueueBatch mocks base method.
    84  func (m *MockRegionClient) QueueBatch(arg0 context.Context, arg1 []hrpc.Call) {
    85  	m.ctrl.T.Helper()
    86  	m.ctrl.Call(m, "QueueBatch", arg0, arg1)
    87  }
    88  
    89  // QueueBatch indicates an expected call of QueueBatch.
    90  func (mr *MockRegionClientMockRecorder) QueueBatch(arg0, arg1 any) *gomock.Call {
    91  	mr.mock.ctrl.T.Helper()
    92  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueBatch", reflect.TypeOf((*MockRegionClient)(nil).QueueBatch), arg0, arg1)
    93  }
    94  
    95  // QueueRPC mocks base method.
    96  func (m *MockRegionClient) QueueRPC(arg0 hrpc.Call) {
    97  	m.ctrl.T.Helper()
    98  	m.ctrl.Call(m, "QueueRPC", arg0)
    99  }
   100  
   101  // QueueRPC indicates an expected call of QueueRPC.
   102  func (mr *MockRegionClientMockRecorder) QueueRPC(arg0 any) *gomock.Call {
   103  	mr.mock.ctrl.T.Helper()
   104  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueRPC", reflect.TypeOf((*MockRegionClient)(nil).QueueRPC), arg0)
   105  }
   106  
   107  // String mocks base method.
   108  func (m *MockRegionClient) String() string {
   109  	m.ctrl.T.Helper()
   110  	ret := m.ctrl.Call(m, "String")
   111  	ret0, _ := ret[0].(string)
   112  	return ret0
   113  }
   114  
   115  // String indicates an expected call of String.
   116  func (mr *MockRegionClientMockRecorder) String() *gomock.Call {
   117  	mr.mock.ctrl.T.Helper()
   118  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockRegionClient)(nil).String))
   119  }