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) 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) Compact() error
- func (m *MockDB) Delete(arg0 []byte) error
- func (m *MockDB) DeleteSync(arg0 []byte) error
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) Get(arg0 []byte) ([]byte, error)
- func (m *MockDB) GetUnsafeValue(key []byte, processor db.UnsafeValueProcessor) (interface{}, error)
- func (m *MockDB) Has(key []byte) (bool, error)
- func (m *MockDB) Iterator(start, end []byte) (db.Iterator, error)
- func (m *MockDB) NewBatch() db.Batch
- func (m *MockDB) Print() error
- func (m *MockDB) ReverseIterator(start, end []byte) (db.Iterator, error)
- func (m *MockDB) Set(arg0, arg1 []byte) error
- func (m *MockDB) SetSync(arg0, arg1 []byte) error
- func (m *MockDB) Stats() map[string]string
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) Close() *gomock.Call
- func (mr *MockDBMockRecorder) Compact() *gomock.Call
- func (mr *MockDBMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) DeleteSync(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) GetUnsafeValue(key, processor 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) Print() *gomock.Call
- func (mr *MockDBMockRecorder) ReverseIterator(start, end interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) SetSync(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Stats() *gomock.Call
- type MockIterator
- func (m *MockIterator) Close()
- 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
- type MockSetDeleter
- type MockSetDeleterMockRecorder
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.
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) 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) DeleteSync ¶
DeleteSync mocks base method.
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDB) GetUnsafeValue ¶
func (m *MockDB) GetUnsafeValue(key []byte, processor db.UnsafeValueProcessor) (interface{}, error)
GetUnsafeValue mocks base method.
func (*MockDB) ReverseIterator ¶
ReverseIterator 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) Compact ¶ added in v1.6.3
func (mr *MockDBMockRecorder) Compact() *gomock.Call
Compact indicates an expected call of Compact.
func (*MockDBMockRecorder) Delete ¶
func (mr *MockDBMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockDBMockRecorder) DeleteSync ¶
func (mr *MockDBMockRecorder) DeleteSync(arg0 interface{}) *gomock.Call
DeleteSync indicates an expected call of DeleteSync.
func (*MockDBMockRecorder) Get ¶
func (mr *MockDBMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockDBMockRecorder) GetUnsafeValue ¶
func (mr *MockDBMockRecorder) GetUnsafeValue(key, processor interface{}) *gomock.Call
GetUnsafeValue indicates an expected call of GetUnsafeValue.
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) Print ¶
func (mr *MockDBMockRecorder) Print() *gomock.Call
Print indicates an expected call of Print.
func (*MockDBMockRecorder) ReverseIterator ¶
func (mr *MockDBMockRecorder) ReverseIterator(start, end interface{}) *gomock.Call
ReverseIterator indicates an expected call of ReverseIterator.
func (*MockDBMockRecorder) Set ¶
func (mr *MockDBMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockDBMockRecorder) SetSync ¶
func (mr *MockDBMockRecorder) SetSync(arg0, arg1 interface{}) *gomock.Call
SetSync indicates an expected call of SetSync.
func (*MockDBMockRecorder) Stats ¶
func (mr *MockDBMockRecorder) Stats() *gomock.Call
Stats indicates an expected call of Stats.
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.
type MockSetDeleter ¶
type MockSetDeleter struct {
// contains filtered or unexported fields
}
MockSetDeleter is a mock of SetDeleter interface.
func NewMockSetDeleter ¶
func NewMockSetDeleter(ctrl *gomock.Controller) *MockSetDeleter
NewMockSetDeleter creates a new mock instance.
func (*MockSetDeleter) Delete ¶
func (m *MockSetDeleter) Delete(key []byte)
Delete mocks base method.
func (*MockSetDeleter) EXPECT ¶
func (m *MockSetDeleter) EXPECT() *MockSetDeleterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSetDeleterMockRecorder ¶
type MockSetDeleterMockRecorder struct {
// contains filtered or unexported fields
}
MockSetDeleterMockRecorder is the mock recorder for MockSetDeleter.
func (*MockSetDeleterMockRecorder) Delete ¶
func (mr *MockSetDeleterMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSetDeleterMockRecorder) Set ¶
func (mr *MockSetDeleterMockRecorder) Set(key, value interface{}) *gomock.Call
Set indicates an expected call of Set.