github.com/m3db/m3@v1.5.0/src/dbnode/storage/lookup_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/dbnode/storage (interfaces: IndexWriter)
     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 storage is a generated GoMock package.
    25  package storage
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/m3db/m3/src/dbnode/ts/writes"
    31  	"github.com/m3db/m3/src/x/time"
    32  
    33  	"github.com/golang/mock/gomock"
    34  )
    35  
    36  // MockIndexWriter is a mock of IndexWriter interface.
    37  type MockIndexWriter struct {
    38  	ctrl     *gomock.Controller
    39  	recorder *MockIndexWriterMockRecorder
    40  }
    41  
    42  // MockIndexWriterMockRecorder is the mock recorder for MockIndexWriter.
    43  type MockIndexWriterMockRecorder struct {
    44  	mock *MockIndexWriter
    45  }
    46  
    47  // NewMockIndexWriter creates a new mock instance.
    48  func NewMockIndexWriter(ctrl *gomock.Controller) *MockIndexWriter {
    49  	mock := &MockIndexWriter{ctrl: ctrl}
    50  	mock.recorder = &MockIndexWriterMockRecorder{mock}
    51  	return mock
    52  }
    53  
    54  // EXPECT returns an object that allows the caller to indicate expected use.
    55  func (m *MockIndexWriter) EXPECT() *MockIndexWriterMockRecorder {
    56  	return m.recorder
    57  }
    58  
    59  // BlockStartForWriteTime mocks base method.
    60  func (m *MockIndexWriter) BlockStartForWriteTime(arg0 time.UnixNano) time.UnixNano {
    61  	m.ctrl.T.Helper()
    62  	ret := m.ctrl.Call(m, "BlockStartForWriteTime", arg0)
    63  	ret0, _ := ret[0].(time.UnixNano)
    64  	return ret0
    65  }
    66  
    67  // BlockStartForWriteTime indicates an expected call of BlockStartForWriteTime.
    68  func (mr *MockIndexWriterMockRecorder) BlockStartForWriteTime(arg0 interface{}) *gomock.Call {
    69  	mr.mock.ctrl.T.Helper()
    70  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockStartForWriteTime", reflect.TypeOf((*MockIndexWriter)(nil).BlockStartForWriteTime), arg0)
    71  }
    72  
    73  // WritePending mocks base method.
    74  func (m *MockIndexWriter) WritePending(arg0 []writes.PendingIndexInsert) error {
    75  	m.ctrl.T.Helper()
    76  	ret := m.ctrl.Call(m, "WritePending", arg0)
    77  	ret0, _ := ret[0].(error)
    78  	return ret0
    79  }
    80  
    81  // WritePending indicates an expected call of WritePending.
    82  func (mr *MockIndexWriterMockRecorder) WritePending(arg0 interface{}) *gomock.Call {
    83  	mr.mock.ctrl.T.Helper()
    84  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WritePending", reflect.TypeOf((*MockIndexWriter)(nil).WritePending), arg0)
    85  }