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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/m3ninx/index/segment/mem (interfaces: ReadableSegment)
     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 mem is a generated GoMock package.
    25  package mem
    26  
    27  import (
    28  	"reflect"
    29  	"regexp"
    30  
    31  	"github.com/m3db/m3/src/m3ninx/doc"
    32  	"github.com/m3db/m3/src/m3ninx/index/segment"
    33  	"github.com/m3db/m3/src/m3ninx/postings"
    34  
    35  	"github.com/golang/mock/gomock"
    36  )
    37  
    38  // MockReadableSegment is a mock of ReadableSegment interface.
    39  type MockReadableSegment struct {
    40  	ctrl     *gomock.Controller
    41  	recorder *MockReadableSegmentMockRecorder
    42  }
    43  
    44  // MockReadableSegmentMockRecorder is the mock recorder for MockReadableSegment.
    45  type MockReadableSegmentMockRecorder struct {
    46  	mock *MockReadableSegment
    47  }
    48  
    49  // NewMockReadableSegment creates a new mock instance.
    50  func NewMockReadableSegment(ctrl *gomock.Controller) *MockReadableSegment {
    51  	mock := &MockReadableSegment{ctrl: ctrl}
    52  	mock.recorder = &MockReadableSegmentMockRecorder{mock}
    53  	return mock
    54  }
    55  
    56  // EXPECT returns an object that allows the caller to indicate expected use.
    57  func (m *MockReadableSegment) EXPECT() *MockReadableSegmentMockRecorder {
    58  	return m.recorder
    59  }
    60  
    61  // ContainsField mocks base method.
    62  func (m *MockReadableSegment) ContainsField(arg0 []byte) (bool, error) {
    63  	m.ctrl.T.Helper()
    64  	ret := m.ctrl.Call(m, "ContainsField", arg0)
    65  	ret0, _ := ret[0].(bool)
    66  	ret1, _ := ret[1].(error)
    67  	return ret0, ret1
    68  }
    69  
    70  // ContainsField indicates an expected call of ContainsField.
    71  func (mr *MockReadableSegmentMockRecorder) ContainsField(arg0 interface{}) *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsField", reflect.TypeOf((*MockReadableSegment)(nil).ContainsField), arg0)
    74  }
    75  
    76  // Fields mocks base method.
    77  func (m *MockReadableSegment) Fields() (segment.FieldsIterator, error) {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "Fields")
    80  	ret0, _ := ret[0].(segment.FieldsIterator)
    81  	ret1, _ := ret[1].(error)
    82  	return ret0, ret1
    83  }
    84  
    85  // Fields indicates an expected call of Fields.
    86  func (mr *MockReadableSegmentMockRecorder) Fields() *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fields", reflect.TypeOf((*MockReadableSegment)(nil).Fields))
    89  }
    90  
    91  // FieldsPostingsList mocks base method.
    92  func (m *MockReadableSegment) FieldsPostingsList() (segment.FieldsPostingsListIterator, error) {
    93  	m.ctrl.T.Helper()
    94  	ret := m.ctrl.Call(m, "FieldsPostingsList")
    95  	ret0, _ := ret[0].(segment.FieldsPostingsListIterator)
    96  	ret1, _ := ret[1].(error)
    97  	return ret0, ret1
    98  }
    99  
   100  // FieldsPostingsList indicates an expected call of FieldsPostingsList.
   101  func (mr *MockReadableSegmentMockRecorder) FieldsPostingsList() *gomock.Call {
   102  	mr.mock.ctrl.T.Helper()
   103  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FieldsPostingsList", reflect.TypeOf((*MockReadableSegment)(nil).FieldsPostingsList))
   104  }
   105  
   106  // Terms mocks base method.
   107  func (m *MockReadableSegment) Terms(arg0 []byte) (segment.TermsIterator, error) {
   108  	m.ctrl.T.Helper()
   109  	ret := m.ctrl.Call(m, "Terms", arg0)
   110  	ret0, _ := ret[0].(segment.TermsIterator)
   111  	ret1, _ := ret[1].(error)
   112  	return ret0, ret1
   113  }
   114  
   115  // Terms indicates an expected call of Terms.
   116  func (mr *MockReadableSegmentMockRecorder) Terms(arg0 interface{}) *gomock.Call {
   117  	mr.mock.ctrl.T.Helper()
   118  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Terms", reflect.TypeOf((*MockReadableSegment)(nil).Terms), arg0)
   119  }
   120  
   121  // getDoc mocks base method.
   122  func (m *MockReadableSegment) getDoc(arg0 postings.ID) (doc.Metadata, error) {
   123  	m.ctrl.T.Helper()
   124  	ret := m.ctrl.Call(m, "getDoc", arg0)
   125  	ret0, _ := ret[0].(doc.Metadata)
   126  	ret1, _ := ret[1].(error)
   127  	return ret0, ret1
   128  }
   129  
   130  // getDoc indicates an expected call of getDoc.
   131  func (mr *MockReadableSegmentMockRecorder) getDoc(arg0 interface{}) *gomock.Call {
   132  	mr.mock.ctrl.T.Helper()
   133  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getDoc", reflect.TypeOf((*MockReadableSegment)(nil).getDoc), arg0)
   134  }
   135  
   136  // matchRegexp mocks base method.
   137  func (m *MockReadableSegment) matchRegexp(arg0 []byte, arg1 *regexp.Regexp) (postings.List, error) {
   138  	m.ctrl.T.Helper()
   139  	ret := m.ctrl.Call(m, "matchRegexp", arg0, arg1)
   140  	ret0, _ := ret[0].(postings.List)
   141  	ret1, _ := ret[1].(error)
   142  	return ret0, ret1
   143  }
   144  
   145  // matchRegexp indicates an expected call of matchRegexp.
   146  func (mr *MockReadableSegmentMockRecorder) matchRegexp(arg0, arg1 interface{}) *gomock.Call {
   147  	mr.mock.ctrl.T.Helper()
   148  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "matchRegexp", reflect.TypeOf((*MockReadableSegment)(nil).matchRegexp), arg0, arg1)
   149  }
   150  
   151  // matchTerm mocks base method.
   152  func (m *MockReadableSegment) matchTerm(arg0, arg1 []byte) (postings.List, error) {
   153  	m.ctrl.T.Helper()
   154  	ret := m.ctrl.Call(m, "matchTerm", arg0, arg1)
   155  	ret0, _ := ret[0].(postings.List)
   156  	ret1, _ := ret[1].(error)
   157  	return ret0, ret1
   158  }
   159  
   160  // matchTerm indicates an expected call of matchTerm.
   161  func (mr *MockReadableSegmentMockRecorder) matchTerm(arg0, arg1 interface{}) *gomock.Call {
   162  	mr.mock.ctrl.T.Helper()
   163  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "matchTerm", reflect.TypeOf((*MockReadableSegment)(nil).matchTerm), arg0, arg1)
   164  }