Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockBatch
- type MockBatchMockRecorder
- func (mr *MockBatchMockRecorder) Delete(key interface{}) *gomock.Call
- func (mr *MockBatchMockRecorder) Put(key, value interface{}) *gomock.Call
- func (mr *MockBatchMockRecorder) Reset() *gomock.Call
- func (mr *MockBatchMockRecorder) ValueSize() *gomock.Call
- func (mr *MockBatchMockRecorder) Write() *gomock.Call
- type MockDatabase
- func (m *MockDatabase) Close()
- func (m *MockDatabase) Delete(key []byte) error
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) Find(key []byte) database.Iterator
- func (m *MockDatabase) Get(key []byte) ([]byte, error)
- func (m *MockDatabase) Has(key []byte) (bool, error)
- func (m *MockDatabase) NewBatch() database.Batch
- func (m *MockDatabase) Put(key, value []byte) error
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) Close() *gomock.Call
- func (mr *MockDatabaseMockRecorder) Delete(key interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Find(key interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Has(key interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) NewBatch() *gomock.Call
- func (mr *MockDatabaseMockRecorder) Put(key, value interface{}) *gomock.Call
- type MockDeleter
- type MockDeleterMockRecorder
- type MockGetter
- type MockGetterMockRecorder
- type MockPutter
- type MockPutterMockRecorder
- type MockStore
- type MockStoreMockRecorder
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) Delete ¶
func (mr *MockBatchMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockBatchMockRecorder) Put ¶
func (mr *MockBatchMockRecorder) Put(key, value interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockBatchMockRecorder) Reset ¶
func (mr *MockBatchMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset.
func (*MockBatchMockRecorder) ValueSize ¶
func (mr *MockBatchMockRecorder) ValueSize() *gomock.Call
ValueSize indicates an expected call of ValueSize.
func (*MockBatchMockRecorder) Write ¶
func (mr *MockBatchMockRecorder) Write() *gomock.Call
Write indicates an expected call of Write.
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) Delete ¶
func (m *MockDatabase) Delete(key []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) Find ¶
func (m *MockDatabase) Find(key []byte) database.Iterator
Find mocks base method.
func (*MockDatabase) Get ¶
func (m *MockDatabase) Get(key []byte) ([]byte, error)
Get mocks base method.
func (*MockDatabase) Has ¶
func (m *MockDatabase) Has(key []byte) (bool, error)
Has mocks base method.
func (*MockDatabase) NewBatch ¶
func (m *MockDatabase) NewBatch() database.Batch
NewBatch mocks base method.
func (*MockDatabase) Put ¶
func (m *MockDatabase) Put(key, value []byte) error
Put mocks base method.
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) Delete ¶
func (mr *MockDatabaseMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockDatabaseMockRecorder) Find ¶
func (mr *MockDatabaseMockRecorder) Find(key interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockDatabaseMockRecorder) Get ¶
func (mr *MockDatabaseMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockDatabaseMockRecorder) Has ¶
func (mr *MockDatabaseMockRecorder) Has(key interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockDatabaseMockRecorder) NewBatch ¶
func (mr *MockDatabaseMockRecorder) NewBatch() *gomock.Call
NewBatch indicates an expected call of NewBatch.
func (*MockDatabaseMockRecorder) Put ¶
func (mr *MockDatabaseMockRecorder) Put(key, value interface{}) *gomock.Call
Put indicates an expected call of Put.
type MockDeleter ¶
type MockDeleter struct {
// contains filtered or unexported fields
}
MockDeleter is a mock of Deleter interface.
func NewMockDeleter ¶
func NewMockDeleter(ctrl *gomock.Controller) *MockDeleter
NewMockDeleter creates a new mock instance.
func (*MockDeleter) Delete ¶
func (m *MockDeleter) Delete(key []byte) error
Delete mocks base method.
func (*MockDeleter) EXPECT ¶
func (m *MockDeleter) EXPECT() *MockDeleterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDeleterMockRecorder ¶
type MockDeleterMockRecorder struct {
// contains filtered or unexported fields
}
MockDeleterMockRecorder is the mock recorder for MockDeleter.
func (*MockDeleterMockRecorder) Delete ¶
func (mr *MockDeleterMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
type MockGetter ¶
type MockGetter struct {
// contains filtered or unexported fields
}
MockGetter is a mock of Getter interface.
func NewMockGetter ¶
func NewMockGetter(ctrl *gomock.Controller) *MockGetter
NewMockGetter creates a new mock instance.
func (*MockGetter) EXPECT ¶
func (m *MockGetter) EXPECT() *MockGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGetterMockRecorder ¶
type MockGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockGetterMockRecorder is the mock recorder for MockGetter.
func (*MockGetterMockRecorder) Get ¶
func (mr *MockGetterMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockPutter ¶
type MockPutter struct {
// contains filtered or unexported fields
}
MockPutter is a mock of Putter interface.
func NewMockPutter ¶
func NewMockPutter(ctrl *gomock.Controller) *MockPutter
NewMockPutter creates a new mock instance.
func (*MockPutter) EXPECT ¶
func (m *MockPutter) EXPECT() *MockPutterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPutterMockRecorder ¶
type MockPutterMockRecorder struct {
// contains filtered or unexported fields
}
MockPutterMockRecorder is the mock recorder for MockPutter.
func (*MockPutterMockRecorder) Put ¶
func (mr *MockPutterMockRecorder) Put(key, value interface{}) *gomock.Call
Put indicates an expected call of Put.
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface.
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance.
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) Get ¶
func (mr *MockStoreMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockStoreMockRecorder) Put ¶
func (mr *MockStoreMockRecorder) Put(key, value interface{}) *gomock.Call
Put indicates an expected call of Put.