github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/dbnode/x/xio/io_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/dbnode/x/xio (interfaces: SegmentReader,SegmentReaderPool)
     3  
     4  // Copyright (c) 2021 Uber Technologies, Inc.
     5  //
     6  // Permission is hereby granted, free of charge, to any person obtaining a copy
     7  // of this software and associated documentation files (the "Software"), to deal
     8  // in the Software without restriction, including without limitation the rights
     9  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    10  // copies of the Software, and to permit persons to whom the Software is
    11  // furnished to do so, subject to the following conditions:
    12  //
    13  // The above copyright notice and this permission notice shall be included in
    14  // all copies or substantial portions of the Software.
    15  //
    16  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    17  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    18  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    19  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    20  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    21  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22  // THE SOFTWARE.
    23  
    24  // Package xio is a generated GoMock package.
    25  package xio
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/m3db/m3/src/dbnode/ts"
    31  	"github.com/m3db/m3/src/x/pool"
    32  
    33  	"github.com/golang/mock/gomock"
    34  )
    35  
    36  // MockSegmentReader is a mock of SegmentReader interface.
    37  type MockSegmentReader struct {
    38  	ctrl     *gomock.Controller
    39  	recorder *MockSegmentReaderMockRecorder
    40  }
    41  
    42  // MockSegmentReaderMockRecorder is the mock recorder for MockSegmentReader.
    43  type MockSegmentReaderMockRecorder struct {
    44  	mock *MockSegmentReader
    45  }
    46  
    47  // NewMockSegmentReader creates a new mock instance.
    48  func NewMockSegmentReader(ctrl *gomock.Controller) *MockSegmentReader {
    49  	mock := &MockSegmentReader{ctrl: ctrl}
    50  	mock.recorder = &MockSegmentReaderMockRecorder{mock}
    51  	return mock
    52  }
    53  
    54  // EXPECT returns an object that allows the caller to indicate expected use.
    55  func (m *MockSegmentReader) EXPECT() *MockSegmentReaderMockRecorder {
    56  	return m.recorder
    57  }
    58  
    59  // Clone mocks base method.
    60  func (m *MockSegmentReader) Clone(arg0 pool.CheckedBytesPool) (SegmentReader, error) {
    61  	m.ctrl.T.Helper()
    62  	ret := m.ctrl.Call(m, "Clone", arg0)
    63  	ret0, _ := ret[0].(SegmentReader)
    64  	ret1, _ := ret[1].(error)
    65  	return ret0, ret1
    66  }
    67  
    68  // Clone indicates an expected call of Clone.
    69  func (mr *MockSegmentReaderMockRecorder) Clone(arg0 interface{}) *gomock.Call {
    70  	mr.mock.ctrl.T.Helper()
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clone", reflect.TypeOf((*MockSegmentReader)(nil).Clone), arg0)
    72  }
    73  
    74  // Finalize mocks base method.
    75  func (m *MockSegmentReader) Finalize() {
    76  	m.ctrl.T.Helper()
    77  	m.ctrl.Call(m, "Finalize")
    78  }
    79  
    80  // Finalize indicates an expected call of Finalize.
    81  func (mr *MockSegmentReaderMockRecorder) Finalize() *gomock.Call {
    82  	mr.mock.ctrl.T.Helper()
    83  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Finalize", reflect.TypeOf((*MockSegmentReader)(nil).Finalize))
    84  }
    85  
    86  // Peek64 mocks base method.
    87  func (m *MockSegmentReader) Peek64() (uint64, byte, error) {
    88  	m.ctrl.T.Helper()
    89  	ret := m.ctrl.Call(m, "Peek64")
    90  	ret0, _ := ret[0].(uint64)
    91  	ret1, _ := ret[1].(byte)
    92  	ret2, _ := ret[2].(error)
    93  	return ret0, ret1, ret2
    94  }
    95  
    96  // Peek64 indicates an expected call of Peek64.
    97  func (mr *MockSegmentReaderMockRecorder) Peek64() *gomock.Call {
    98  	mr.mock.ctrl.T.Helper()
    99  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Peek64", reflect.TypeOf((*MockSegmentReader)(nil).Peek64))
   100  }
   101  
   102  // Read64 mocks base method.
   103  func (m *MockSegmentReader) Read64() (uint64, byte, error) {
   104  	m.ctrl.T.Helper()
   105  	ret := m.ctrl.Call(m, "Read64")
   106  	ret0, _ := ret[0].(uint64)
   107  	ret1, _ := ret[1].(byte)
   108  	ret2, _ := ret[2].(error)
   109  	return ret0, ret1, ret2
   110  }
   111  
   112  // Read64 indicates an expected call of Read64.
   113  func (mr *MockSegmentReaderMockRecorder) Read64() *gomock.Call {
   114  	mr.mock.ctrl.T.Helper()
   115  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read64", reflect.TypeOf((*MockSegmentReader)(nil).Read64))
   116  }
   117  
   118  // Reset mocks base method.
   119  func (m *MockSegmentReader) Reset(arg0 ts.Segment) {
   120  	m.ctrl.T.Helper()
   121  	m.ctrl.Call(m, "Reset", arg0)
   122  }
   123  
   124  // Reset indicates an expected call of Reset.
   125  func (mr *MockSegmentReaderMockRecorder) Reset(arg0 interface{}) *gomock.Call {
   126  	mr.mock.ctrl.T.Helper()
   127  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockSegmentReader)(nil).Reset), arg0)
   128  }
   129  
   130  // Segment mocks base method.
   131  func (m *MockSegmentReader) Segment() (ts.Segment, error) {
   132  	m.ctrl.T.Helper()
   133  	ret := m.ctrl.Call(m, "Segment")
   134  	ret0, _ := ret[0].(ts.Segment)
   135  	ret1, _ := ret[1].(error)
   136  	return ret0, ret1
   137  }
   138  
   139  // Segment indicates an expected call of Segment.
   140  func (mr *MockSegmentReaderMockRecorder) Segment() *gomock.Call {
   141  	mr.mock.ctrl.T.Helper()
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Segment", reflect.TypeOf((*MockSegmentReader)(nil).Segment))
   143  }
   144  
   145  // MockSegmentReaderPool is a mock of SegmentReaderPool interface.
   146  type MockSegmentReaderPool struct {
   147  	ctrl     *gomock.Controller
   148  	recorder *MockSegmentReaderPoolMockRecorder
   149  }
   150  
   151  // MockSegmentReaderPoolMockRecorder is the mock recorder for MockSegmentReaderPool.
   152  type MockSegmentReaderPoolMockRecorder struct {
   153  	mock *MockSegmentReaderPool
   154  }
   155  
   156  // NewMockSegmentReaderPool creates a new mock instance.
   157  func NewMockSegmentReaderPool(ctrl *gomock.Controller) *MockSegmentReaderPool {
   158  	mock := &MockSegmentReaderPool{ctrl: ctrl}
   159  	mock.recorder = &MockSegmentReaderPoolMockRecorder{mock}
   160  	return mock
   161  }
   162  
   163  // EXPECT returns an object that allows the caller to indicate expected use.
   164  func (m *MockSegmentReaderPool) EXPECT() *MockSegmentReaderPoolMockRecorder {
   165  	return m.recorder
   166  }
   167  
   168  // Get mocks base method.
   169  func (m *MockSegmentReaderPool) Get() SegmentReader {
   170  	m.ctrl.T.Helper()
   171  	ret := m.ctrl.Call(m, "Get")
   172  	ret0, _ := ret[0].(SegmentReader)
   173  	return ret0
   174  }
   175  
   176  // Get indicates an expected call of Get.
   177  func (mr *MockSegmentReaderPoolMockRecorder) Get() *gomock.Call {
   178  	mr.mock.ctrl.T.Helper()
   179  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockSegmentReaderPool)(nil).Get))
   180  }
   181  
   182  // Init mocks base method.
   183  func (m *MockSegmentReaderPool) Init() {
   184  	m.ctrl.T.Helper()
   185  	m.ctrl.Call(m, "Init")
   186  }
   187  
   188  // Init indicates an expected call of Init.
   189  func (mr *MockSegmentReaderPoolMockRecorder) Init() *gomock.Call {
   190  	mr.mock.ctrl.T.Helper()
   191  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockSegmentReaderPool)(nil).Init))
   192  }
   193  
   194  // Put mocks base method.
   195  func (m *MockSegmentReaderPool) Put(arg0 SegmentReader) {
   196  	m.ctrl.T.Helper()
   197  	m.ctrl.Call(m, "Put", arg0)
   198  }
   199  
   200  // Put indicates an expected call of Put.
   201  func (mr *MockSegmentReaderPoolMockRecorder) Put(arg0 interface{}) *gomock.Call {
   202  	mr.mock.ctrl.T.Helper()
   203  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockSegmentReaderPool)(nil).Put), arg0)
   204  }