Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockBatch
- type MockBatchMockRecorder
- func (mr *MockBatchMockRecorder) Close() *gomock.Call
- func (mr *MockBatchMockRecorder) Delete(key interface{}) *gomock.Call
- func (mr *MockBatchMockRecorder) GetByteSize() *gomock.Call
- func (mr *MockBatchMockRecorder) Set(key, value interface{}) *gomock.Call
- func (mr *MockBatchMockRecorder) Write() *gomock.Call
- func (mr *MockBatchMockRecorder) WriteSync() *gomock.Call
- type MockDB
- func (m *MockDB) Close() error
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) Get(arg0 []byte) ([]byte, error)
- func (m *MockDB) Has(key []byte) (bool, error)
- func (m *MockDB) Iterator(start, end []byte) (corestore.Iterator, error)
- func (m *MockDB) NewBatch() corestore.Batch
- func (m *MockDB) NewBatchWithSize(arg0 int) corestore.Batch
- func (m *MockDB) ReverseIterator(start, end []byte) (corestore.Iterator, error)
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) Close() *gomock.Call
- func (mr *MockDBMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Has(key interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Iterator(start, end interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) NewBatch() *gomock.Call
- func (mr *MockDBMockRecorder) NewBatchWithSize(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) ReverseIterator(start, end interface{}) *gomock.Call
- type MockIterator
- func (m *MockIterator) Close() error
- func (m *MockIterator) Domain() ([]byte, []byte)
- func (m *MockIterator) EXPECT() *MockIteratorMockRecorder
- func (m *MockIterator) Error() error
- func (m *MockIterator) Key() []byte
- func (m *MockIterator) Next()
- func (m *MockIterator) Valid() bool
- func (m *MockIterator) Value() []byte
- type MockIteratorMockRecorder
- func (mr *MockIteratorMockRecorder) Close() *gomock.Call
- func (mr *MockIteratorMockRecorder) Domain() *gomock.Call
- func (mr *MockIteratorMockRecorder) Error() *gomock.Call
- func (mr *MockIteratorMockRecorder) Key() *gomock.Call
- func (mr *MockIteratorMockRecorder) Next() *gomock.Call
- func (mr *MockIteratorMockRecorder) Valid() *gomock.Call
- func (mr *MockIteratorMockRecorder) Value() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBatch ¶
type MockBatch struct {
// contains filtered or unexported fields
}
MockBatch is a mock of Batch interface.
func NewMockBatch ¶
func NewMockBatch(ctrl *gomock.Controller) *MockBatch
NewMockBatch creates a new mock instance.
func (*MockBatch) EXPECT ¶
func (m *MockBatch) EXPECT() *MockBatchMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBatch) GetByteSize ¶ added in v1.0.0
GetByteSize mocks base method.
type MockBatchMockRecorder ¶
type MockBatchMockRecorder struct {
// contains filtered or unexported fields
}
MockBatchMockRecorder is the mock recorder for MockBatch.
func (*MockBatchMockRecorder) Close ¶
func (mr *MockBatchMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockBatchMockRecorder) Delete ¶
func (mr *MockBatchMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockBatchMockRecorder) GetByteSize ¶ added in v1.0.0
func (mr *MockBatchMockRecorder) GetByteSize() *gomock.Call
GetByteSize indicates an expected call of GetByteSize.
func (*MockBatchMockRecorder) Set ¶
func (mr *MockBatchMockRecorder) Set(key, value interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockBatchMockRecorder) Write ¶
func (mr *MockBatchMockRecorder) Write() *gomock.Call
Write indicates an expected call of Write.
func (*MockBatchMockRecorder) WriteSync ¶
func (mr *MockBatchMockRecorder) WriteSync() *gomock.Call
WriteSync indicates an expected call of WriteSync.
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface.
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance.
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDB) NewBatchWithSize ¶ added in v1.0.0
NewBatchWithSize mocks base method.
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB.
func (*MockDBMockRecorder) Close ¶
func (mr *MockDBMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDBMockRecorder) Get ¶
func (mr *MockDBMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockDBMockRecorder) Has ¶
func (mr *MockDBMockRecorder) Has(key interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockDBMockRecorder) Iterator ¶
func (mr *MockDBMockRecorder) Iterator(start, end interface{}) *gomock.Call
Iterator indicates an expected call of Iterator.
func (*MockDBMockRecorder) NewBatch ¶
func (mr *MockDBMockRecorder) NewBatch() *gomock.Call
NewBatch indicates an expected call of NewBatch.
func (*MockDBMockRecorder) NewBatchWithSize ¶ added in v1.0.0
func (mr *MockDBMockRecorder) NewBatchWithSize(arg0 interface{}) *gomock.Call
NewBatchWithSize indicates an expected call of NewBatchWithSize.
func (*MockDBMockRecorder) ReverseIterator ¶
func (mr *MockDBMockRecorder) ReverseIterator(start, end interface{}) *gomock.Call
ReverseIterator indicates an expected call of ReverseIterator.
type MockIterator ¶
type MockIterator struct {
// contains filtered or unexported fields
}
MockIterator is a mock of Iterator interface.
func NewMockIterator ¶
func NewMockIterator(ctrl *gomock.Controller) *MockIterator
NewMockIterator creates a new mock instance.
func (*MockIterator) Domain ¶
func (m *MockIterator) Domain() ([]byte, []byte)
Domain mocks base method.
func (*MockIterator) EXPECT ¶
func (m *MockIterator) EXPECT() *MockIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIteratorMockRecorder ¶
type MockIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockIteratorMockRecorder is the mock recorder for MockIterator.
func (*MockIteratorMockRecorder) Close ¶
func (mr *MockIteratorMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockIteratorMockRecorder) Domain ¶
func (mr *MockIteratorMockRecorder) Domain() *gomock.Call
Domain indicates an expected call of Domain.
func (*MockIteratorMockRecorder) Error ¶
func (mr *MockIteratorMockRecorder) Error() *gomock.Call
Error indicates an expected call of Error.
func (*MockIteratorMockRecorder) Key ¶
func (mr *MockIteratorMockRecorder) Key() *gomock.Call
Key indicates an expected call of Key.
func (*MockIteratorMockRecorder) Next ¶
func (mr *MockIteratorMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockIteratorMockRecorder) Valid ¶
func (mr *MockIteratorMockRecorder) Valid() *gomock.Call
Valid indicates an expected call of Valid.
func (*MockIteratorMockRecorder) Value ¶
func (mr *MockIteratorMockRecorder) Value() *gomock.Call
Value indicates an expected call of Value.