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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ../../persist/types.go
     3  
     4  // Copyright (c) 2022 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 persist is a generated GoMock package.
    25  package persist
    26  
    27  import (
    28  	"io"
    29  	"reflect"
    30  
    31  	"github.com/m3db/m3/src/m3ninx/index/segment"
    32  	"github.com/m3db/m3/src/x/mmap"
    33  
    34  	"github.com/golang/mock/gomock"
    35  )
    36  
    37  // MockIndexFileSetWriter is a mock of IndexFileSetWriter interface.
    38  type MockIndexFileSetWriter struct {
    39  	ctrl     *gomock.Controller
    40  	recorder *MockIndexFileSetWriterMockRecorder
    41  }
    42  
    43  // MockIndexFileSetWriterMockRecorder is the mock recorder for MockIndexFileSetWriter.
    44  type MockIndexFileSetWriterMockRecorder struct {
    45  	mock *MockIndexFileSetWriter
    46  }
    47  
    48  // NewMockIndexFileSetWriter creates a new mock instance.
    49  func NewMockIndexFileSetWriter(ctrl *gomock.Controller) *MockIndexFileSetWriter {
    50  	mock := &MockIndexFileSetWriter{ctrl: ctrl}
    51  	mock.recorder = &MockIndexFileSetWriterMockRecorder{mock}
    52  	return mock
    53  }
    54  
    55  // EXPECT returns an object that allows the caller to indicate expected use.
    56  func (m *MockIndexFileSetWriter) EXPECT() *MockIndexFileSetWriterMockRecorder {
    57  	return m.recorder
    58  }
    59  
    60  // WriteSegmentFileSet mocks base method.
    61  func (m *MockIndexFileSetWriter) WriteSegmentFileSet(segmentFileSet IndexSegmentFileSetWriter) error {
    62  	m.ctrl.T.Helper()
    63  	ret := m.ctrl.Call(m, "WriteSegmentFileSet", segmentFileSet)
    64  	ret0, _ := ret[0].(error)
    65  	return ret0
    66  }
    67  
    68  // WriteSegmentFileSet indicates an expected call of WriteSegmentFileSet.
    69  func (mr *MockIndexFileSetWriterMockRecorder) WriteSegmentFileSet(segmentFileSet interface{}) *gomock.Call {
    70  	mr.mock.ctrl.T.Helper()
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteSegmentFileSet", reflect.TypeOf((*MockIndexFileSetWriter)(nil).WriteSegmentFileSet), segmentFileSet)
    72  }
    73  
    74  // MockIndexSegmentFileSetWriter is a mock of IndexSegmentFileSetWriter interface.
    75  type MockIndexSegmentFileSetWriter struct {
    76  	ctrl     *gomock.Controller
    77  	recorder *MockIndexSegmentFileSetWriterMockRecorder
    78  }
    79  
    80  // MockIndexSegmentFileSetWriterMockRecorder is the mock recorder for MockIndexSegmentFileSetWriter.
    81  type MockIndexSegmentFileSetWriterMockRecorder struct {
    82  	mock *MockIndexSegmentFileSetWriter
    83  }
    84  
    85  // NewMockIndexSegmentFileSetWriter creates a new mock instance.
    86  func NewMockIndexSegmentFileSetWriter(ctrl *gomock.Controller) *MockIndexSegmentFileSetWriter {
    87  	mock := &MockIndexSegmentFileSetWriter{ctrl: ctrl}
    88  	mock.recorder = &MockIndexSegmentFileSetWriterMockRecorder{mock}
    89  	return mock
    90  }
    91  
    92  // EXPECT returns an object that allows the caller to indicate expected use.
    93  func (m *MockIndexSegmentFileSetWriter) EXPECT() *MockIndexSegmentFileSetWriterMockRecorder {
    94  	return m.recorder
    95  }
    96  
    97  // Files mocks base method.
    98  func (m *MockIndexSegmentFileSetWriter) Files() []IndexSegmentFileType {
    99  	m.ctrl.T.Helper()
   100  	ret := m.ctrl.Call(m, "Files")
   101  	ret0, _ := ret[0].([]IndexSegmentFileType)
   102  	return ret0
   103  }
   104  
   105  // Files indicates an expected call of Files.
   106  func (mr *MockIndexSegmentFileSetWriterMockRecorder) Files() *gomock.Call {
   107  	mr.mock.ctrl.T.Helper()
   108  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Files", reflect.TypeOf((*MockIndexSegmentFileSetWriter)(nil).Files))
   109  }
   110  
   111  // MajorVersion mocks base method.
   112  func (m *MockIndexSegmentFileSetWriter) MajorVersion() int {
   113  	m.ctrl.T.Helper()
   114  	ret := m.ctrl.Call(m, "MajorVersion")
   115  	ret0, _ := ret[0].(int)
   116  	return ret0
   117  }
   118  
   119  // MajorVersion indicates an expected call of MajorVersion.
   120  func (mr *MockIndexSegmentFileSetWriterMockRecorder) MajorVersion() *gomock.Call {
   121  	mr.mock.ctrl.T.Helper()
   122  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MajorVersion", reflect.TypeOf((*MockIndexSegmentFileSetWriter)(nil).MajorVersion))
   123  }
   124  
   125  // MinorVersion mocks base method.
   126  func (m *MockIndexSegmentFileSetWriter) MinorVersion() int {
   127  	m.ctrl.T.Helper()
   128  	ret := m.ctrl.Call(m, "MinorVersion")
   129  	ret0, _ := ret[0].(int)
   130  	return ret0
   131  }
   132  
   133  // MinorVersion indicates an expected call of MinorVersion.
   134  func (mr *MockIndexSegmentFileSetWriterMockRecorder) MinorVersion() *gomock.Call {
   135  	mr.mock.ctrl.T.Helper()
   136  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MinorVersion", reflect.TypeOf((*MockIndexSegmentFileSetWriter)(nil).MinorVersion))
   137  }
   138  
   139  // SegmentMetadata mocks base method.
   140  func (m *MockIndexSegmentFileSetWriter) SegmentMetadata() []byte {
   141  	m.ctrl.T.Helper()
   142  	ret := m.ctrl.Call(m, "SegmentMetadata")
   143  	ret0, _ := ret[0].([]byte)
   144  	return ret0
   145  }
   146  
   147  // SegmentMetadata indicates an expected call of SegmentMetadata.
   148  func (mr *MockIndexSegmentFileSetWriterMockRecorder) SegmentMetadata() *gomock.Call {
   149  	mr.mock.ctrl.T.Helper()
   150  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SegmentMetadata", reflect.TypeOf((*MockIndexSegmentFileSetWriter)(nil).SegmentMetadata))
   151  }
   152  
   153  // SegmentType mocks base method.
   154  func (m *MockIndexSegmentFileSetWriter) SegmentType() IndexSegmentType {
   155  	m.ctrl.T.Helper()
   156  	ret := m.ctrl.Call(m, "SegmentType")
   157  	ret0, _ := ret[0].(IndexSegmentType)
   158  	return ret0
   159  }
   160  
   161  // SegmentType indicates an expected call of SegmentType.
   162  func (mr *MockIndexSegmentFileSetWriterMockRecorder) SegmentType() *gomock.Call {
   163  	mr.mock.ctrl.T.Helper()
   164  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SegmentType", reflect.TypeOf((*MockIndexSegmentFileSetWriter)(nil).SegmentType))
   165  }
   166  
   167  // WriteFile mocks base method.
   168  func (m *MockIndexSegmentFileSetWriter) WriteFile(fileType IndexSegmentFileType, writer io.Writer) error {
   169  	m.ctrl.T.Helper()
   170  	ret := m.ctrl.Call(m, "WriteFile", fileType, writer)
   171  	ret0, _ := ret[0].(error)
   172  	return ret0
   173  }
   174  
   175  // WriteFile indicates an expected call of WriteFile.
   176  func (mr *MockIndexSegmentFileSetWriterMockRecorder) WriteFile(fileType, writer interface{}) *gomock.Call {
   177  	mr.mock.ctrl.T.Helper()
   178  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteFile", reflect.TypeOf((*MockIndexSegmentFileSetWriter)(nil).WriteFile), fileType, writer)
   179  }
   180  
   181  // MockMutableSegmentFileSetWriter is a mock of MutableSegmentFileSetWriter interface.
   182  type MockMutableSegmentFileSetWriter struct {
   183  	ctrl     *gomock.Controller
   184  	recorder *MockMutableSegmentFileSetWriterMockRecorder
   185  }
   186  
   187  // MockMutableSegmentFileSetWriterMockRecorder is the mock recorder for MockMutableSegmentFileSetWriter.
   188  type MockMutableSegmentFileSetWriterMockRecorder struct {
   189  	mock *MockMutableSegmentFileSetWriter
   190  }
   191  
   192  // NewMockMutableSegmentFileSetWriter creates a new mock instance.
   193  func NewMockMutableSegmentFileSetWriter(ctrl *gomock.Controller) *MockMutableSegmentFileSetWriter {
   194  	mock := &MockMutableSegmentFileSetWriter{ctrl: ctrl}
   195  	mock.recorder = &MockMutableSegmentFileSetWriterMockRecorder{mock}
   196  	return mock
   197  }
   198  
   199  // EXPECT returns an object that allows the caller to indicate expected use.
   200  func (m *MockMutableSegmentFileSetWriter) EXPECT() *MockMutableSegmentFileSetWriterMockRecorder {
   201  	return m.recorder
   202  }
   203  
   204  // Files mocks base method.
   205  func (m *MockMutableSegmentFileSetWriter) Files() []IndexSegmentFileType {
   206  	m.ctrl.T.Helper()
   207  	ret := m.ctrl.Call(m, "Files")
   208  	ret0, _ := ret[0].([]IndexSegmentFileType)
   209  	return ret0
   210  }
   211  
   212  // Files indicates an expected call of Files.
   213  func (mr *MockMutableSegmentFileSetWriterMockRecorder) Files() *gomock.Call {
   214  	mr.mock.ctrl.T.Helper()
   215  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Files", reflect.TypeOf((*MockMutableSegmentFileSetWriter)(nil).Files))
   216  }
   217  
   218  // MajorVersion mocks base method.
   219  func (m *MockMutableSegmentFileSetWriter) MajorVersion() int {
   220  	m.ctrl.T.Helper()
   221  	ret := m.ctrl.Call(m, "MajorVersion")
   222  	ret0, _ := ret[0].(int)
   223  	return ret0
   224  }
   225  
   226  // MajorVersion indicates an expected call of MajorVersion.
   227  func (mr *MockMutableSegmentFileSetWriterMockRecorder) MajorVersion() *gomock.Call {
   228  	mr.mock.ctrl.T.Helper()
   229  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MajorVersion", reflect.TypeOf((*MockMutableSegmentFileSetWriter)(nil).MajorVersion))
   230  }
   231  
   232  // MinorVersion mocks base method.
   233  func (m *MockMutableSegmentFileSetWriter) MinorVersion() int {
   234  	m.ctrl.T.Helper()
   235  	ret := m.ctrl.Call(m, "MinorVersion")
   236  	ret0, _ := ret[0].(int)
   237  	return ret0
   238  }
   239  
   240  // MinorVersion indicates an expected call of MinorVersion.
   241  func (mr *MockMutableSegmentFileSetWriterMockRecorder) MinorVersion() *gomock.Call {
   242  	mr.mock.ctrl.T.Helper()
   243  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MinorVersion", reflect.TypeOf((*MockMutableSegmentFileSetWriter)(nil).MinorVersion))
   244  }
   245  
   246  // Reset mocks base method.
   247  func (m *MockMutableSegmentFileSetWriter) Reset(arg0 segment.Builder) error {
   248  	m.ctrl.T.Helper()
   249  	ret := m.ctrl.Call(m, "Reset", arg0)
   250  	ret0, _ := ret[0].(error)
   251  	return ret0
   252  }
   253  
   254  // Reset indicates an expected call of Reset.
   255  func (mr *MockMutableSegmentFileSetWriterMockRecorder) Reset(arg0 interface{}) *gomock.Call {
   256  	mr.mock.ctrl.T.Helper()
   257  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockMutableSegmentFileSetWriter)(nil).Reset), arg0)
   258  }
   259  
   260  // SegmentMetadata mocks base method.
   261  func (m *MockMutableSegmentFileSetWriter) SegmentMetadata() []byte {
   262  	m.ctrl.T.Helper()
   263  	ret := m.ctrl.Call(m, "SegmentMetadata")
   264  	ret0, _ := ret[0].([]byte)
   265  	return ret0
   266  }
   267  
   268  // SegmentMetadata indicates an expected call of SegmentMetadata.
   269  func (mr *MockMutableSegmentFileSetWriterMockRecorder) SegmentMetadata() *gomock.Call {
   270  	mr.mock.ctrl.T.Helper()
   271  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SegmentMetadata", reflect.TypeOf((*MockMutableSegmentFileSetWriter)(nil).SegmentMetadata))
   272  }
   273  
   274  // SegmentType mocks base method.
   275  func (m *MockMutableSegmentFileSetWriter) SegmentType() IndexSegmentType {
   276  	m.ctrl.T.Helper()
   277  	ret := m.ctrl.Call(m, "SegmentType")
   278  	ret0, _ := ret[0].(IndexSegmentType)
   279  	return ret0
   280  }
   281  
   282  // SegmentType indicates an expected call of SegmentType.
   283  func (mr *MockMutableSegmentFileSetWriterMockRecorder) SegmentType() *gomock.Call {
   284  	mr.mock.ctrl.T.Helper()
   285  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SegmentType", reflect.TypeOf((*MockMutableSegmentFileSetWriter)(nil).SegmentType))
   286  }
   287  
   288  // WriteFile mocks base method.
   289  func (m *MockMutableSegmentFileSetWriter) WriteFile(fileType IndexSegmentFileType, writer io.Writer) error {
   290  	m.ctrl.T.Helper()
   291  	ret := m.ctrl.Call(m, "WriteFile", fileType, writer)
   292  	ret0, _ := ret[0].(error)
   293  	return ret0
   294  }
   295  
   296  // WriteFile indicates an expected call of WriteFile.
   297  func (mr *MockMutableSegmentFileSetWriterMockRecorder) WriteFile(fileType, writer interface{}) *gomock.Call {
   298  	mr.mock.ctrl.T.Helper()
   299  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteFile", reflect.TypeOf((*MockMutableSegmentFileSetWriter)(nil).WriteFile), fileType, writer)
   300  }
   301  
   302  // MockIndexFileSetReader is a mock of IndexFileSetReader interface.
   303  type MockIndexFileSetReader struct {
   304  	ctrl     *gomock.Controller
   305  	recorder *MockIndexFileSetReaderMockRecorder
   306  }
   307  
   308  // MockIndexFileSetReaderMockRecorder is the mock recorder for MockIndexFileSetReader.
   309  type MockIndexFileSetReaderMockRecorder struct {
   310  	mock *MockIndexFileSetReader
   311  }
   312  
   313  // NewMockIndexFileSetReader creates a new mock instance.
   314  func NewMockIndexFileSetReader(ctrl *gomock.Controller) *MockIndexFileSetReader {
   315  	mock := &MockIndexFileSetReader{ctrl: ctrl}
   316  	mock.recorder = &MockIndexFileSetReaderMockRecorder{mock}
   317  	return mock
   318  }
   319  
   320  // EXPECT returns an object that allows the caller to indicate expected use.
   321  func (m *MockIndexFileSetReader) EXPECT() *MockIndexFileSetReaderMockRecorder {
   322  	return m.recorder
   323  }
   324  
   325  // IndexVolumeType mocks base method.
   326  func (m *MockIndexFileSetReader) IndexVolumeType() IndexVolumeType {
   327  	m.ctrl.T.Helper()
   328  	ret := m.ctrl.Call(m, "IndexVolumeType")
   329  	ret0, _ := ret[0].(IndexVolumeType)
   330  	return ret0
   331  }
   332  
   333  // IndexVolumeType indicates an expected call of IndexVolumeType.
   334  func (mr *MockIndexFileSetReaderMockRecorder) IndexVolumeType() *gomock.Call {
   335  	mr.mock.ctrl.T.Helper()
   336  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexVolumeType", reflect.TypeOf((*MockIndexFileSetReader)(nil).IndexVolumeType))
   337  }
   338  
   339  // ReadSegmentFileSet mocks base method.
   340  func (m *MockIndexFileSetReader) ReadSegmentFileSet() (IndexSegmentFileSet, error) {
   341  	m.ctrl.T.Helper()
   342  	ret := m.ctrl.Call(m, "ReadSegmentFileSet")
   343  	ret0, _ := ret[0].(IndexSegmentFileSet)
   344  	ret1, _ := ret[1].(error)
   345  	return ret0, ret1
   346  }
   347  
   348  // ReadSegmentFileSet indicates an expected call of ReadSegmentFileSet.
   349  func (mr *MockIndexFileSetReaderMockRecorder) ReadSegmentFileSet() *gomock.Call {
   350  	mr.mock.ctrl.T.Helper()
   351  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadSegmentFileSet", reflect.TypeOf((*MockIndexFileSetReader)(nil).ReadSegmentFileSet))
   352  }
   353  
   354  // SegmentFileSets mocks base method.
   355  func (m *MockIndexFileSetReader) SegmentFileSets() int {
   356  	m.ctrl.T.Helper()
   357  	ret := m.ctrl.Call(m, "SegmentFileSets")
   358  	ret0, _ := ret[0].(int)
   359  	return ret0
   360  }
   361  
   362  // SegmentFileSets indicates an expected call of SegmentFileSets.
   363  func (mr *MockIndexFileSetReaderMockRecorder) SegmentFileSets() *gomock.Call {
   364  	mr.mock.ctrl.T.Helper()
   365  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SegmentFileSets", reflect.TypeOf((*MockIndexFileSetReader)(nil).SegmentFileSets))
   366  }
   367  
   368  // MockIndexSegmentFileSet is a mock of IndexSegmentFileSet interface.
   369  type MockIndexSegmentFileSet struct {
   370  	ctrl     *gomock.Controller
   371  	recorder *MockIndexSegmentFileSetMockRecorder
   372  }
   373  
   374  // MockIndexSegmentFileSetMockRecorder is the mock recorder for MockIndexSegmentFileSet.
   375  type MockIndexSegmentFileSetMockRecorder struct {
   376  	mock *MockIndexSegmentFileSet
   377  }
   378  
   379  // NewMockIndexSegmentFileSet creates a new mock instance.
   380  func NewMockIndexSegmentFileSet(ctrl *gomock.Controller) *MockIndexSegmentFileSet {
   381  	mock := &MockIndexSegmentFileSet{ctrl: ctrl}
   382  	mock.recorder = &MockIndexSegmentFileSetMockRecorder{mock}
   383  	return mock
   384  }
   385  
   386  // EXPECT returns an object that allows the caller to indicate expected use.
   387  func (m *MockIndexSegmentFileSet) EXPECT() *MockIndexSegmentFileSetMockRecorder {
   388  	return m.recorder
   389  }
   390  
   391  // Files mocks base method.
   392  func (m *MockIndexSegmentFileSet) Files() []IndexSegmentFile {
   393  	m.ctrl.T.Helper()
   394  	ret := m.ctrl.Call(m, "Files")
   395  	ret0, _ := ret[0].([]IndexSegmentFile)
   396  	return ret0
   397  }
   398  
   399  // Files indicates an expected call of Files.
   400  func (mr *MockIndexSegmentFileSetMockRecorder) Files() *gomock.Call {
   401  	mr.mock.ctrl.T.Helper()
   402  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Files", reflect.TypeOf((*MockIndexSegmentFileSet)(nil).Files))
   403  }
   404  
   405  // MajorVersion mocks base method.
   406  func (m *MockIndexSegmentFileSet) MajorVersion() int {
   407  	m.ctrl.T.Helper()
   408  	ret := m.ctrl.Call(m, "MajorVersion")
   409  	ret0, _ := ret[0].(int)
   410  	return ret0
   411  }
   412  
   413  // MajorVersion indicates an expected call of MajorVersion.
   414  func (mr *MockIndexSegmentFileSetMockRecorder) MajorVersion() *gomock.Call {
   415  	mr.mock.ctrl.T.Helper()
   416  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MajorVersion", reflect.TypeOf((*MockIndexSegmentFileSet)(nil).MajorVersion))
   417  }
   418  
   419  // MinorVersion mocks base method.
   420  func (m *MockIndexSegmentFileSet) MinorVersion() int {
   421  	m.ctrl.T.Helper()
   422  	ret := m.ctrl.Call(m, "MinorVersion")
   423  	ret0, _ := ret[0].(int)
   424  	return ret0
   425  }
   426  
   427  // MinorVersion indicates an expected call of MinorVersion.
   428  func (mr *MockIndexSegmentFileSetMockRecorder) MinorVersion() *gomock.Call {
   429  	mr.mock.ctrl.T.Helper()
   430  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MinorVersion", reflect.TypeOf((*MockIndexSegmentFileSet)(nil).MinorVersion))
   431  }
   432  
   433  // SegmentMetadata mocks base method.
   434  func (m *MockIndexSegmentFileSet) SegmentMetadata() []byte {
   435  	m.ctrl.T.Helper()
   436  	ret := m.ctrl.Call(m, "SegmentMetadata")
   437  	ret0, _ := ret[0].([]byte)
   438  	return ret0
   439  }
   440  
   441  // SegmentMetadata indicates an expected call of SegmentMetadata.
   442  func (mr *MockIndexSegmentFileSetMockRecorder) SegmentMetadata() *gomock.Call {
   443  	mr.mock.ctrl.T.Helper()
   444  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SegmentMetadata", reflect.TypeOf((*MockIndexSegmentFileSet)(nil).SegmentMetadata))
   445  }
   446  
   447  // SegmentType mocks base method.
   448  func (m *MockIndexSegmentFileSet) SegmentType() IndexSegmentType {
   449  	m.ctrl.T.Helper()
   450  	ret := m.ctrl.Call(m, "SegmentType")
   451  	ret0, _ := ret[0].(IndexSegmentType)
   452  	return ret0
   453  }
   454  
   455  // SegmentType indicates an expected call of SegmentType.
   456  func (mr *MockIndexSegmentFileSetMockRecorder) SegmentType() *gomock.Call {
   457  	mr.mock.ctrl.T.Helper()
   458  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SegmentType", reflect.TypeOf((*MockIndexSegmentFileSet)(nil).SegmentType))
   459  }
   460  
   461  // MockIndexSegmentFile is a mock of IndexSegmentFile interface.
   462  type MockIndexSegmentFile struct {
   463  	ctrl     *gomock.Controller
   464  	recorder *MockIndexSegmentFileMockRecorder
   465  }
   466  
   467  // MockIndexSegmentFileMockRecorder is the mock recorder for MockIndexSegmentFile.
   468  type MockIndexSegmentFileMockRecorder struct {
   469  	mock *MockIndexSegmentFile
   470  }
   471  
   472  // NewMockIndexSegmentFile creates a new mock instance.
   473  func NewMockIndexSegmentFile(ctrl *gomock.Controller) *MockIndexSegmentFile {
   474  	mock := &MockIndexSegmentFile{ctrl: ctrl}
   475  	mock.recorder = &MockIndexSegmentFileMockRecorder{mock}
   476  	return mock
   477  }
   478  
   479  // EXPECT returns an object that allows the caller to indicate expected use.
   480  func (m *MockIndexSegmentFile) EXPECT() *MockIndexSegmentFileMockRecorder {
   481  	return m.recorder
   482  }
   483  
   484  // Close mocks base method.
   485  func (m *MockIndexSegmentFile) Close() error {
   486  	m.ctrl.T.Helper()
   487  	ret := m.ctrl.Call(m, "Close")
   488  	ret0, _ := ret[0].(error)
   489  	return ret0
   490  }
   491  
   492  // Close indicates an expected call of Close.
   493  func (mr *MockIndexSegmentFileMockRecorder) Close() *gomock.Call {
   494  	mr.mock.ctrl.T.Helper()
   495  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockIndexSegmentFile)(nil).Close))
   496  }
   497  
   498  // Mmap mocks base method.
   499  func (m *MockIndexSegmentFile) Mmap() (mmap.Descriptor, error) {
   500  	m.ctrl.T.Helper()
   501  	ret := m.ctrl.Call(m, "Mmap")
   502  	ret0, _ := ret[0].(mmap.Descriptor)
   503  	ret1, _ := ret[1].(error)
   504  	return ret0, ret1
   505  }
   506  
   507  // Mmap indicates an expected call of Mmap.
   508  func (mr *MockIndexSegmentFileMockRecorder) Mmap() *gomock.Call {
   509  	mr.mock.ctrl.T.Helper()
   510  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Mmap", reflect.TypeOf((*MockIndexSegmentFile)(nil).Mmap))
   511  }
   512  
   513  // Read mocks base method.
   514  func (m *MockIndexSegmentFile) Read(p []byte) (int, error) {
   515  	m.ctrl.T.Helper()
   516  	ret := m.ctrl.Call(m, "Read", p)
   517  	ret0, _ := ret[0].(int)
   518  	ret1, _ := ret[1].(error)
   519  	return ret0, ret1
   520  }
   521  
   522  // Read indicates an expected call of Read.
   523  func (mr *MockIndexSegmentFileMockRecorder) Read(p interface{}) *gomock.Call {
   524  	mr.mock.ctrl.T.Helper()
   525  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockIndexSegmentFile)(nil).Read), p)
   526  }
   527  
   528  // SegmentFileType mocks base method.
   529  func (m *MockIndexSegmentFile) SegmentFileType() IndexSegmentFileType {
   530  	m.ctrl.T.Helper()
   531  	ret := m.ctrl.Call(m, "SegmentFileType")
   532  	ret0, _ := ret[0].(IndexSegmentFileType)
   533  	return ret0
   534  }
   535  
   536  // SegmentFileType indicates an expected call of SegmentFileType.
   537  func (mr *MockIndexSegmentFileMockRecorder) SegmentFileType() *gomock.Call {
   538  	mr.mock.ctrl.T.Helper()
   539  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SegmentFileType", reflect.TypeOf((*MockIndexSegmentFile)(nil).SegmentFileType))
   540  }