Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockDatabase
- func (m *MockDatabase) Close() error
- func (m *MockDatabase) Compact(arg0, arg1 []byte) error
- func (m *MockDatabase) Delete(arg0 []byte) error
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) Get(arg0 []byte) ([]byte, error)
- func (m *MockDatabase) Has(arg0 []byte) (bool, error)
- func (m *MockDatabase) HealthCheck(arg0 context.Context) (interface{}, error)
- func (m *MockDatabase) NewBatch() database.Batch
- func (m *MockDatabase) NewIterator() database.Iterator
- func (m *MockDatabase) NewIteratorWithPrefix(arg0 []byte) database.Iterator
- func (m *MockDatabase) NewIteratorWithStart(arg0 []byte) database.Iterator
- func (m *MockDatabase) NewIteratorWithStartAndPrefix(arg0, arg1 []byte) database.Iterator
- func (m *MockDatabase) Put(arg0, arg1 []byte) error
- type MockDatabaseIterator
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) Close() *gomock.Call
- func (mr *MockDatabaseMockRecorder) Compact(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Has(arg0 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) NewBatch() *gomock.Call
- func (mr *MockDatabaseMockRecorder) NewIterator() *gomock.Call
- func (mr *MockDatabaseMockRecorder) NewIteratorWithPrefix(arg0 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) NewIteratorWithStart(arg0 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) NewIteratorWithStartAndPrefix(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Put(arg0, arg1 interface{}) *gomock.Call
- type MockIterator
- type MockIteratorMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDatabase ¶
type MockDatabase struct {
// contains filtered or unexported fields
}
MockDatabase is a mock of Database interface.
func NewMockDatabase ¶
func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase
NewMockDatabase creates a new mock instance.
func (*MockDatabase) Compact ¶
func (m *MockDatabase) Compact(arg0, arg1 []byte) error
Compact mocks base method.
func (*MockDatabase) Delete ¶
func (m *MockDatabase) Delete(arg0 []byte) error
Delete mocks base method.
func (*MockDatabase) EXPECT ¶
func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDatabase) Get ¶
func (m *MockDatabase) Get(arg0 []byte) ([]byte, error)
Get mocks base method.
func (*MockDatabase) Has ¶
func (m *MockDatabase) Has(arg0 []byte) (bool, error)
Has mocks base method.
func (*MockDatabase) HealthCheck ¶
func (m *MockDatabase) HealthCheck(arg0 context.Context) (interface{}, error)
HealthCheck mocks base method.
func (*MockDatabase) NewBatch ¶
func (m *MockDatabase) NewBatch() database.Batch
NewBatch mocks base method.
func (*MockDatabase) NewIterator ¶
func (m *MockDatabase) NewIterator() database.Iterator
NewIterator mocks base method.
func (*MockDatabase) NewIteratorWithPrefix ¶
func (m *MockDatabase) NewIteratorWithPrefix(arg0 []byte) database.Iterator
NewIteratorWithPrefix mocks base method.
func (*MockDatabase) NewIteratorWithStart ¶
func (m *MockDatabase) NewIteratorWithStart(arg0 []byte) database.Iterator
NewIteratorWithStart mocks base method.
func (*MockDatabase) NewIteratorWithStartAndPrefix ¶
func (m *MockDatabase) NewIteratorWithStartAndPrefix(arg0, arg1 []byte) database.Iterator
NewIteratorWithStartAndPrefix mocks base method.
func (*MockDatabase) Put ¶
func (m *MockDatabase) Put(arg0, arg1 []byte) error
Put mocks base method.
type MockDatabaseIterator ¶
func (MockDatabaseIterator) Error ¶
func (m MockDatabaseIterator) Error() error
func (MockDatabaseIterator) Key ¶
func (m MockDatabaseIterator) Key() []byte
func (MockDatabaseIterator) Next ¶
func (m MockDatabaseIterator) Next() bool
func (MockDatabaseIterator) Release ¶
func (m MockDatabaseIterator) Release()
func (MockDatabaseIterator) Value ¶
func (m MockDatabaseIterator) Value() []byte
type MockDatabaseMockRecorder ¶
type MockDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseMockRecorder is the mock recorder for MockDatabase.
func (*MockDatabaseMockRecorder) Close ¶
func (mr *MockDatabaseMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDatabaseMockRecorder) Compact ¶
func (mr *MockDatabaseMockRecorder) Compact(arg0, arg1 interface{}) *gomock.Call
Compact indicates an expected call of Compact.
func (*MockDatabaseMockRecorder) Delete ¶
func (mr *MockDatabaseMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockDatabaseMockRecorder) Get ¶
func (mr *MockDatabaseMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockDatabaseMockRecorder) Has ¶
func (mr *MockDatabaseMockRecorder) Has(arg0 interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockDatabaseMockRecorder) HealthCheck ¶
func (mr *MockDatabaseMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*MockDatabaseMockRecorder) NewBatch ¶
func (mr *MockDatabaseMockRecorder) NewBatch() *gomock.Call
NewBatch indicates an expected call of NewBatch.
func (*MockDatabaseMockRecorder) NewIterator ¶
func (mr *MockDatabaseMockRecorder) NewIterator() *gomock.Call
NewIterator indicates an expected call of NewIterator.
func (*MockDatabaseMockRecorder) NewIteratorWithPrefix ¶
func (mr *MockDatabaseMockRecorder) NewIteratorWithPrefix(arg0 interface{}) *gomock.Call
NewIteratorWithPrefix indicates an expected call of NewIteratorWithPrefix.
func (*MockDatabaseMockRecorder) NewIteratorWithStart ¶
func (mr *MockDatabaseMockRecorder) NewIteratorWithStart(arg0 interface{}) *gomock.Call
NewIteratorWithStart indicates an expected call of NewIteratorWithStart.
func (*MockDatabaseMockRecorder) NewIteratorWithStartAndPrefix ¶
func (mr *MockDatabaseMockRecorder) NewIteratorWithStartAndPrefix(arg0, arg1 interface{}) *gomock.Call
NewIteratorWithStartAndPrefix indicates an expected call of NewIteratorWithStartAndPrefix.
func (*MockDatabaseMockRecorder) Put ¶
func (mr *MockDatabaseMockRecorder) Put(arg0, arg1 interface{}) *gomock.Call
Put indicates an expected call of Put.
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) 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) 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) Release ¶
func (mr *MockIteratorMockRecorder) Release() *gomock.Call
Release indicates an expected call of Release.
func (*MockIteratorMockRecorder) Value ¶
func (mr *MockIteratorMockRecorder) Value() *gomock.Call
Value indicates an expected call of Value.