Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockDB
- func (m *MockDB) Close() 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) Has(arg0 []byte) (bool, error)
- func (m *MockDB) Iterator(arg0, arg1 []byte) (db.Iterator, error)
- func (m *MockDB) NewBatch() db.Batch
- func (m *MockDB) NewBatchWithSize(arg0 int) db.Batch
- func (m *MockDB) Print() error
- func (m *MockDB) ReverseIterator(arg0, arg1 []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) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) DeleteSync(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Has(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Iterator(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) NewBatch() *gomock.Call
- func (mr *MockDBMockRecorder) NewBatchWithSize(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Print() *gomock.Call
- func (mr *MockDBMockRecorder) ReverseIterator(arg0, arg1 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) Iterator ¶
Iterator mocks base method.
func (*MockDB) NewBatchWithSize ¶
NewBatchWithSize mocks base method.
func (*MockDB) ReverseIterator ¶
ReverseIterator mocks base method.
func (*MockDB) SetSync ¶
SetSync 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) 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) Has ¶
func (mr *MockDBMockRecorder) Has(arg0 interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockDBMockRecorder) Iterator ¶
func (mr *MockDBMockRecorder) Iterator(arg0, arg1 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 ¶
func (mr *MockDBMockRecorder) NewBatchWithSize(arg0 interface{}) *gomock.Call
NewBatchWithSize indicates an expected call of NewBatchWithSize.
func (*MockDBMockRecorder) Print ¶
func (mr *MockDBMockRecorder) Print() *gomock.Call
Print indicates an expected call of Print.
func (*MockDBMockRecorder) ReverseIterator ¶
func (mr *MockDBMockRecorder) ReverseIterator(arg0, arg1 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.