github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/m3ninx/index/index_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/m3ninx/index (interfaces: Reader,DocRetriever,MetadataRetriever)
     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 index is a generated GoMock package.
    25  package index
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/m3db/m3/src/m3ninx/doc"
    31  	"github.com/m3db/m3/src/m3ninx/postings"
    32  
    33  	"github.com/golang/mock/gomock"
    34  )
    35  
    36  // MockReader is a mock of Reader interface.
    37  type MockReader struct {
    38  	ctrl     *gomock.Controller
    39  	recorder *MockReaderMockRecorder
    40  }
    41  
    42  // MockReaderMockRecorder is the mock recorder for MockReader.
    43  type MockReaderMockRecorder struct {
    44  	mock *MockReader
    45  }
    46  
    47  // NewMockReader creates a new mock instance.
    48  func NewMockReader(ctrl *gomock.Controller) *MockReader {
    49  	mock := &MockReader{ctrl: ctrl}
    50  	mock.recorder = &MockReaderMockRecorder{mock}
    51  	return mock
    52  }
    53  
    54  // EXPECT returns an object that allows the caller to indicate expected use.
    55  func (m *MockReader) EXPECT() *MockReaderMockRecorder {
    56  	return m.recorder
    57  }
    58  
    59  // AllDocs mocks base method.
    60  func (m *MockReader) AllDocs() (IDDocIterator, error) {
    61  	m.ctrl.T.Helper()
    62  	ret := m.ctrl.Call(m, "AllDocs")
    63  	ret0, _ := ret[0].(IDDocIterator)
    64  	ret1, _ := ret[1].(error)
    65  	return ret0, ret1
    66  }
    67  
    68  // AllDocs indicates an expected call of AllDocs.
    69  func (mr *MockReaderMockRecorder) AllDocs() *gomock.Call {
    70  	mr.mock.ctrl.T.Helper()
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllDocs", reflect.TypeOf((*MockReader)(nil).AllDocs))
    72  }
    73  
    74  // Close mocks base method.
    75  func (m *MockReader) Close() error {
    76  	m.ctrl.T.Helper()
    77  	ret := m.ctrl.Call(m, "Close")
    78  	ret0, _ := ret[0].(error)
    79  	return ret0
    80  }
    81  
    82  // Close indicates an expected call of Close.
    83  func (mr *MockReaderMockRecorder) Close() *gomock.Call {
    84  	mr.mock.ctrl.T.Helper()
    85  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockReader)(nil).Close))
    86  }
    87  
    88  // Doc mocks base method.
    89  func (m *MockReader) Doc(arg0 postings.ID) (doc.Document, error) {
    90  	m.ctrl.T.Helper()
    91  	ret := m.ctrl.Call(m, "Doc", arg0)
    92  	ret0, _ := ret[0].(doc.Document)
    93  	ret1, _ := ret[1].(error)
    94  	return ret0, ret1
    95  }
    96  
    97  // Doc indicates an expected call of Doc.
    98  func (mr *MockReaderMockRecorder) Doc(arg0 interface{}) *gomock.Call {
    99  	mr.mock.ctrl.T.Helper()
   100  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Doc", reflect.TypeOf((*MockReader)(nil).Doc), arg0)
   101  }
   102  
   103  // Docs mocks base method.
   104  func (m *MockReader) Docs(arg0 postings.List) (doc.Iterator, error) {
   105  	m.ctrl.T.Helper()
   106  	ret := m.ctrl.Call(m, "Docs", arg0)
   107  	ret0, _ := ret[0].(doc.Iterator)
   108  	ret1, _ := ret[1].(error)
   109  	return ret0, ret1
   110  }
   111  
   112  // Docs indicates an expected call of Docs.
   113  func (mr *MockReaderMockRecorder) Docs(arg0 interface{}) *gomock.Call {
   114  	mr.mock.ctrl.T.Helper()
   115  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Docs", reflect.TypeOf((*MockReader)(nil).Docs), arg0)
   116  }
   117  
   118  // MatchAll mocks base method.
   119  func (m *MockReader) MatchAll() (postings.List, error) {
   120  	m.ctrl.T.Helper()
   121  	ret := m.ctrl.Call(m, "MatchAll")
   122  	ret0, _ := ret[0].(postings.List)
   123  	ret1, _ := ret[1].(error)
   124  	return ret0, ret1
   125  }
   126  
   127  // MatchAll indicates an expected call of MatchAll.
   128  func (mr *MockReaderMockRecorder) MatchAll() *gomock.Call {
   129  	mr.mock.ctrl.T.Helper()
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatchAll", reflect.TypeOf((*MockReader)(nil).MatchAll))
   131  }
   132  
   133  // MatchField mocks base method.
   134  func (m *MockReader) MatchField(arg0 []byte) (postings.List, error) {
   135  	m.ctrl.T.Helper()
   136  	ret := m.ctrl.Call(m, "MatchField", arg0)
   137  	ret0, _ := ret[0].(postings.List)
   138  	ret1, _ := ret[1].(error)
   139  	return ret0, ret1
   140  }
   141  
   142  // MatchField indicates an expected call of MatchField.
   143  func (mr *MockReaderMockRecorder) MatchField(arg0 interface{}) *gomock.Call {
   144  	mr.mock.ctrl.T.Helper()
   145  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatchField", reflect.TypeOf((*MockReader)(nil).MatchField), arg0)
   146  }
   147  
   148  // MatchRegexp mocks base method.
   149  func (m *MockReader) MatchRegexp(arg0 []byte, arg1 CompiledRegex) (postings.List, error) {
   150  	m.ctrl.T.Helper()
   151  	ret := m.ctrl.Call(m, "MatchRegexp", arg0, arg1)
   152  	ret0, _ := ret[0].(postings.List)
   153  	ret1, _ := ret[1].(error)
   154  	return ret0, ret1
   155  }
   156  
   157  // MatchRegexp indicates an expected call of MatchRegexp.
   158  func (mr *MockReaderMockRecorder) MatchRegexp(arg0, arg1 interface{}) *gomock.Call {
   159  	mr.mock.ctrl.T.Helper()
   160  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatchRegexp", reflect.TypeOf((*MockReader)(nil).MatchRegexp), arg0, arg1)
   161  }
   162  
   163  // MatchTerm mocks base method.
   164  func (m *MockReader) MatchTerm(arg0, arg1 []byte) (postings.List, error) {
   165  	m.ctrl.T.Helper()
   166  	ret := m.ctrl.Call(m, "MatchTerm", arg0, arg1)
   167  	ret0, _ := ret[0].(postings.List)
   168  	ret1, _ := ret[1].(error)
   169  	return ret0, ret1
   170  }
   171  
   172  // MatchTerm indicates an expected call of MatchTerm.
   173  func (mr *MockReaderMockRecorder) MatchTerm(arg0, arg1 interface{}) *gomock.Call {
   174  	mr.mock.ctrl.T.Helper()
   175  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatchTerm", reflect.TypeOf((*MockReader)(nil).MatchTerm), arg0, arg1)
   176  }
   177  
   178  // Metadata mocks base method.
   179  func (m *MockReader) Metadata(arg0 postings.ID) (doc.Metadata, error) {
   180  	m.ctrl.T.Helper()
   181  	ret := m.ctrl.Call(m, "Metadata", arg0)
   182  	ret0, _ := ret[0].(doc.Metadata)
   183  	ret1, _ := ret[1].(error)
   184  	return ret0, ret1
   185  }
   186  
   187  // Metadata indicates an expected call of Metadata.
   188  func (mr *MockReaderMockRecorder) Metadata(arg0 interface{}) *gomock.Call {
   189  	mr.mock.ctrl.T.Helper()
   190  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Metadata", reflect.TypeOf((*MockReader)(nil).Metadata), arg0)
   191  }
   192  
   193  // MetadataIterator mocks base method.
   194  func (m *MockReader) MetadataIterator(arg0 postings.List) (doc.MetadataIterator, error) {
   195  	m.ctrl.T.Helper()
   196  	ret := m.ctrl.Call(m, "MetadataIterator", arg0)
   197  	ret0, _ := ret[0].(doc.MetadataIterator)
   198  	ret1, _ := ret[1].(error)
   199  	return ret0, ret1
   200  }
   201  
   202  // MetadataIterator indicates an expected call of MetadataIterator.
   203  func (mr *MockReaderMockRecorder) MetadataIterator(arg0 interface{}) *gomock.Call {
   204  	mr.mock.ctrl.T.Helper()
   205  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MetadataIterator", reflect.TypeOf((*MockReader)(nil).MetadataIterator), arg0)
   206  }
   207  
   208  // MockDocRetriever is a mock of DocRetriever interface.
   209  type MockDocRetriever struct {
   210  	ctrl     *gomock.Controller
   211  	recorder *MockDocRetrieverMockRecorder
   212  }
   213  
   214  // MockDocRetrieverMockRecorder is the mock recorder for MockDocRetriever.
   215  type MockDocRetrieverMockRecorder struct {
   216  	mock *MockDocRetriever
   217  }
   218  
   219  // NewMockDocRetriever creates a new mock instance.
   220  func NewMockDocRetriever(ctrl *gomock.Controller) *MockDocRetriever {
   221  	mock := &MockDocRetriever{ctrl: ctrl}
   222  	mock.recorder = &MockDocRetrieverMockRecorder{mock}
   223  	return mock
   224  }
   225  
   226  // EXPECT returns an object that allows the caller to indicate expected use.
   227  func (m *MockDocRetriever) EXPECT() *MockDocRetrieverMockRecorder {
   228  	return m.recorder
   229  }
   230  
   231  // Doc mocks base method.
   232  func (m *MockDocRetriever) Doc(arg0 postings.ID) (doc.Document, error) {
   233  	m.ctrl.T.Helper()
   234  	ret := m.ctrl.Call(m, "Doc", arg0)
   235  	ret0, _ := ret[0].(doc.Document)
   236  	ret1, _ := ret[1].(error)
   237  	return ret0, ret1
   238  }
   239  
   240  // Doc indicates an expected call of Doc.
   241  func (mr *MockDocRetrieverMockRecorder) Doc(arg0 interface{}) *gomock.Call {
   242  	mr.mock.ctrl.T.Helper()
   243  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Doc", reflect.TypeOf((*MockDocRetriever)(nil).Doc), arg0)
   244  }
   245  
   246  // MockMetadataRetriever is a mock of MetadataRetriever interface.
   247  type MockMetadataRetriever struct {
   248  	ctrl     *gomock.Controller
   249  	recorder *MockMetadataRetrieverMockRecorder
   250  }
   251  
   252  // MockMetadataRetrieverMockRecorder is the mock recorder for MockMetadataRetriever.
   253  type MockMetadataRetrieverMockRecorder struct {
   254  	mock *MockMetadataRetriever
   255  }
   256  
   257  // NewMockMetadataRetriever creates a new mock instance.
   258  func NewMockMetadataRetriever(ctrl *gomock.Controller) *MockMetadataRetriever {
   259  	mock := &MockMetadataRetriever{ctrl: ctrl}
   260  	mock.recorder = &MockMetadataRetrieverMockRecorder{mock}
   261  	return mock
   262  }
   263  
   264  // EXPECT returns an object that allows the caller to indicate expected use.
   265  func (m *MockMetadataRetriever) EXPECT() *MockMetadataRetrieverMockRecorder {
   266  	return m.recorder
   267  }
   268  
   269  // Metadata mocks base method.
   270  func (m *MockMetadataRetriever) Metadata(arg0 postings.ID) (doc.Metadata, error) {
   271  	m.ctrl.T.Helper()
   272  	ret := m.ctrl.Call(m, "Metadata", arg0)
   273  	ret0, _ := ret[0].(doc.Metadata)
   274  	ret1, _ := ret[1].(error)
   275  	return ret0, ret1
   276  }
   277  
   278  // Metadata indicates an expected call of Metadata.
   279  func (mr *MockMetadataRetrieverMockRecorder) Metadata(arg0 interface{}) *gomock.Call {
   280  	mr.mock.ctrl.T.Helper()
   281  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Metadata", reflect.TypeOf((*MockMetadataRetriever)(nil).Metadata), arg0)
   282  }