Documentation ¶
Overview ¶
Package mock_database is a generated GoMock package.
Index ¶
- type MockBatch
- type MockBatchMockRecorder
- func (mr *MockBatchMockRecorder) Close() *gomock.Call
- func (mr *MockBatchMockRecorder) Del(key any) *gomock.Call
- func (mr *MockBatchMockRecorder) Flush() *gomock.Call
- func (mr *MockBatchMockRecorder) Put(key, value any) *gomock.Call
- func (mr *MockBatchMockRecorder) Reset() *gomock.Call
- func (mr *MockBatchMockRecorder) ValueSize() *gomock.Call
- type MockDatabase
- func (m *MockDatabase) Close() error
- func (m *MockDatabase) Del(key []byte) error
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) Flush() error
- 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) NewIterator() (database.Iterator, error)
- func (m *MockDatabase) NewPrefixIterator(prefix []byte) (database.Iterator, error)
- func (m *MockDatabase) Path() string
- func (m *MockDatabase) Put(key, value []byte) error
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) Close() *gomock.Call
- func (mr *MockDatabaseMockRecorder) Del(key any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Flush() *gomock.Call
- func (mr *MockDatabaseMockRecorder) Get(key any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Has(key any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) NewBatch() *gomock.Call
- func (mr *MockDatabaseMockRecorder) NewIterator() *gomock.Call
- func (mr *MockDatabaseMockRecorder) NewPrefixIterator(prefix any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Path() *gomock.Call
- func (mr *MockDatabaseMockRecorder) Put(key, value any) *gomock.Call
- type MockIterator
- func (m *MockIterator) Close() error
- func (m *MockIterator) EXPECT() *MockIteratorMockRecorder
- func (m *MockIterator) First() bool
- func (m *MockIterator) Key() []byte
- func (m *MockIterator) Next() bool
- func (m *MockIterator) Release()
- func (m *MockIterator) SeekGE(key []byte) bool
- func (m *MockIterator) Valid() bool
- func (m *MockIterator) Value() []byte
- type MockIteratorMockRecorder
- func (mr *MockIteratorMockRecorder) Close() *gomock.Call
- func (mr *MockIteratorMockRecorder) First() *gomock.Call
- func (mr *MockIteratorMockRecorder) Key() *gomock.Call
- func (mr *MockIteratorMockRecorder) Next() *gomock.Call
- func (mr *MockIteratorMockRecorder) Release() *gomock.Call
- func (mr *MockIteratorMockRecorder) SeekGE(key any) *gomock.Call
- func (mr *MockIteratorMockRecorder) Valid() *gomock.Call
- func (mr *MockIteratorMockRecorder) Value() *gomock.Call
- type MockReader
- type MockReaderMockRecorder
- type MockTable
- func (m *MockTable) Del(key []byte) error
- func (m *MockTable) EXPECT() *MockTableMockRecorder
- func (m *MockTable) Flush() error
- func (m *MockTable) Get(key []byte) ([]byte, error)
- func (m *MockTable) Has(key []byte) (bool, error)
- func (m *MockTable) NewBatch() database.Batch
- func (m *MockTable) NewIterator() (database.Iterator, error)
- func (m *MockTable) Path() string
- func (m *MockTable) Put(key, value []byte) error
- type MockTableMockRecorder
- func (mr *MockTableMockRecorder) Del(key any) *gomock.Call
- func (mr *MockTableMockRecorder) Flush() *gomock.Call
- func (mr *MockTableMockRecorder) Get(key any) *gomock.Call
- func (mr *MockTableMockRecorder) Has(key any) *gomock.Call
- func (mr *MockTableMockRecorder) NewBatch() *gomock.Call
- func (mr *MockTableMockRecorder) NewIterator() *gomock.Call
- func (mr *MockTableMockRecorder) Path() *gomock.Call
- func (mr *MockTableMockRecorder) Put(key, value any) *gomock.Call
- type MockWriter
- type MockWriterMockRecorder
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) Del ¶
func (mr *MockBatchMockRecorder) Del(key any) *gomock.Call
Del indicates an expected call of Del.
func (*MockBatchMockRecorder) Flush ¶
func (mr *MockBatchMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush.
func (*MockBatchMockRecorder) Put ¶
func (mr *MockBatchMockRecorder) Put(key, value any) *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.
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) 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(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) NewIterator ¶
func (m *MockDatabase) NewIterator() (database.Iterator, error)
NewIterator mocks base method.
func (*MockDatabase) NewPrefixIterator ¶
func (m *MockDatabase) NewPrefixIterator(prefix []byte) (database.Iterator, error)
NewPrefixIterator 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) Del ¶
func (mr *MockDatabaseMockRecorder) Del(key any) *gomock.Call
Del indicates an expected call of Del.
func (*MockDatabaseMockRecorder) Flush ¶
func (mr *MockDatabaseMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush.
func (*MockDatabaseMockRecorder) Get ¶
func (mr *MockDatabaseMockRecorder) Get(key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockDatabaseMockRecorder) Has ¶
func (mr *MockDatabaseMockRecorder) Has(key any) *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) NewIterator ¶
func (mr *MockDatabaseMockRecorder) NewIterator() *gomock.Call
NewIterator indicates an expected call of NewIterator.
func (*MockDatabaseMockRecorder) NewPrefixIterator ¶
func (mr *MockDatabaseMockRecorder) NewPrefixIterator(prefix any) *gomock.Call
NewPrefixIterator indicates an expected call of NewPrefixIterator.
func (*MockDatabaseMockRecorder) Path ¶
func (mr *MockDatabaseMockRecorder) Path() *gomock.Call
Path indicates an expected call of Path.
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.
func (*MockIterator) SeekGE ¶
func (m *MockIterator) SeekGE(key []byte) bool
SeekGE mocks base method.
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) First ¶
func (mr *MockIteratorMockRecorder) First() *gomock.Call
First indicates an expected call of First.
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) SeekGE ¶
func (mr *MockIteratorMockRecorder) SeekGE(key any) *gomock.Call
SeekGE indicates an expected call of SeekGE.
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 MockReader ¶
type MockReader struct {
// contains filtered or unexported fields
}
MockReader is a mock of Reader interface.
func NewMockReader ¶
func NewMockReader(ctrl *gomock.Controller) *MockReader
NewMockReader creates a new mock instance.
func (*MockReader) EXPECT ¶
func (m *MockReader) EXPECT() *MockReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockReaderMockRecorder ¶
type MockReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockReaderMockRecorder is the mock recorder for MockReader.
type MockTable ¶
type MockTable struct {
// contains filtered or unexported fields
}
MockTable is a mock of Table interface.
func NewMockTable ¶
func NewMockTable(ctrl *gomock.Controller) *MockTable
NewMockTable creates a new mock instance.
func (*MockTable) EXPECT ¶
func (m *MockTable) EXPECT() *MockTableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTable) NewIterator ¶
NewIterator mocks base method.
type MockTableMockRecorder ¶
type MockTableMockRecorder struct {
// contains filtered or unexported fields
}
MockTableMockRecorder is the mock recorder for MockTable.
func (*MockTableMockRecorder) Del ¶
func (mr *MockTableMockRecorder) Del(key any) *gomock.Call
Del indicates an expected call of Del.
func (*MockTableMockRecorder) Flush ¶
func (mr *MockTableMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush.
func (*MockTableMockRecorder) Get ¶
func (mr *MockTableMockRecorder) Get(key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockTableMockRecorder) Has ¶
func (mr *MockTableMockRecorder) Has(key any) *gomock.Call
Has indicates an expected call of Has.
func (*MockTableMockRecorder) NewBatch ¶
func (mr *MockTableMockRecorder) NewBatch() *gomock.Call
NewBatch indicates an expected call of NewBatch.
func (*MockTableMockRecorder) NewIterator ¶
func (mr *MockTableMockRecorder) NewIterator() *gomock.Call
NewIterator indicates an expected call of NewIterator.
func (*MockTableMockRecorder) Path ¶
func (mr *MockTableMockRecorder) Path() *gomock.Call
Path indicates an expected call of Path.
type MockWriter ¶
type MockWriter struct {
// contains filtered or unexported fields
}
MockWriter is a mock of Writer interface.
func NewMockWriter ¶
func NewMockWriter(ctrl *gomock.Controller) *MockWriter
NewMockWriter creates a new mock instance.
func (*MockWriter) EXPECT ¶
func (m *MockWriter) EXPECT() *MockWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockWriterMockRecorder ¶
type MockWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockWriterMockRecorder is the mock recorder for MockWriter.
func (*MockWriterMockRecorder) Del ¶
func (mr *MockWriterMockRecorder) Del(key any) *gomock.Call
Del indicates an expected call of Del.
func (*MockWriterMockRecorder) Flush ¶
func (mr *MockWriterMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush.