mock_database

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock_database is a generated GoMock package.

Index

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) Close

func (m *MockBatch) Close() error

Close mocks base method.

func (*MockBatch) Del

func (m *MockBatch) Del(key []byte) error

Del mocks base method.

func (*MockBatch) EXPECT

func (m *MockBatch) EXPECT() *MockBatchMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBatch) Flush

func (m *MockBatch) Flush() error

Flush mocks base method.

func (*MockBatch) Put

func (m *MockBatch) Put(key, value []byte) error

Put mocks base method.

func (*MockBatch) Reset

func (m *MockBatch) Reset()

Reset mocks base method.

func (*MockBatch) ValueSize

func (m *MockBatch) ValueSize() int

ValueSize mocks base method.

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) Close

func (m *MockDatabase) Close() error

Close mocks base method.

func (*MockDatabase) Del

func (m *MockDatabase) Del(key []byte) error

Del mocks base method.

func (*MockDatabase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDatabase) Flush

func (m *MockDatabase) Flush() error

Flush 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) 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) Path

func (m *MockDatabase) Path() string

Path 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.

func (*MockDatabaseMockRecorder) Put

func (mr *MockDatabaseMockRecorder) Put(key, value any) *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) Close

func (m *MockIterator) Close() error

Close mocks base method.

func (*MockIterator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIterator) First

func (m *MockIterator) First() bool

First mocks base method.

func (*MockIterator) Key

func (m *MockIterator) Key() []byte

Key mocks base method.

func (*MockIterator) Next

func (m *MockIterator) Next() bool

Next mocks base method.

func (*MockIterator) Release

func (m *MockIterator) Release()

Release mocks base method.

func (*MockIterator) SeekGE

func (m *MockIterator) SeekGE(key []byte) bool

SeekGE mocks base method.

func (*MockIterator) Valid

func (m *MockIterator) Valid() bool

Valid mocks base method.

func (*MockIterator) Value

func (m *MockIterator) Value() []byte

Value 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

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.

func (*MockReader) Get

func (m *MockReader) Get(key []byte) ([]byte, error)

Get mocks base method.

func (*MockReader) Has

func (m *MockReader) Has(key []byte) (bool, error)

Has mocks base method.

type MockReaderMockRecorder

type MockReaderMockRecorder struct {
	// contains filtered or unexported fields
}

MockReaderMockRecorder is the mock recorder for MockReader.

func (*MockReaderMockRecorder) Get

func (mr *MockReaderMockRecorder) Get(key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockReaderMockRecorder) Has

func (mr *MockReaderMockRecorder) Has(key any) *gomock.Call

Has indicates an expected call of Has.

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) Del

func (m *MockTable) Del(key []byte) error

Del mocks base method.

func (*MockTable) EXPECT

func (m *MockTable) EXPECT() *MockTableMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTable) Flush

func (m *MockTable) Flush() error

Flush mocks base method.

func (*MockTable) Get

func (m *MockTable) Get(key []byte) ([]byte, error)

Get mocks base method.

func (*MockTable) Has

func (m *MockTable) Has(key []byte) (bool, error)

Has mocks base method.

func (*MockTable) NewBatch

func (m *MockTable) NewBatch() database.Batch

NewBatch mocks base method.

func (*MockTable) NewIterator

func (m *MockTable) NewIterator() (database.Iterator, error)

NewIterator mocks base method.

func (*MockTable) Path

func (m *MockTable) Path() string

Path mocks base method.

func (*MockTable) Put

func (m *MockTable) Put(key, value []byte) error

Put 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.

func (*MockTableMockRecorder) Put

func (mr *MockTableMockRecorder) Put(key, value any) *gomock.Call

Put indicates an expected call of Put.

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) Del

func (m *MockWriter) Del(key []byte) error

Del mocks base method.

func (*MockWriter) EXPECT

func (m *MockWriter) EXPECT() *MockWriterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockWriter) Flush

func (m *MockWriter) Flush() error

Flush mocks base method.

func (*MockWriter) Put

func (m *MockWriter) Put(key, value []byte) error

Put mocks base method.

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.

func (*MockWriterMockRecorder) Put

func (mr *MockWriterMockRecorder) Put(key, value any) *gomock.Call

Put indicates an expected call of Put.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL