mock

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock_db 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) Delete

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

Delete 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) Set

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

Set mocks base method.

func (*MockBatch) Write

func (m *MockBatch) Write() error

Write mocks base method.

func (*MockBatch) WriteSync

func (m *MockBatch) WriteSync() error

WriteSync 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) Delete

func (mr *MockBatchMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockBatchMockRecorder) Set

func (mr *MockBatchMockRecorder) Set(key, value interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockBatchMockRecorder) Write

func (mr *MockBatchMockRecorder) Write() *gomock.Call

Write indicates an expected call of Write.

func (*MockBatchMockRecorder) WriteSync

func (mr *MockBatchMockRecorder) WriteSync() *gomock.Call

WriteSync indicates an expected call of WriteSync.

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

func (m *MockDB) Close() error

Close mocks base method.

func (*MockDB) Delete

func (m *MockDB) Delete(arg0 []byte) error

Delete mocks base method.

func (*MockDB) DeleteSync

func (m *MockDB) DeleteSync(arg0 []byte) error

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

func (m *MockDB) Get(arg0 []byte) ([]byte, error)

Get mocks base method.

func (*MockDB) Has

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

Has mocks base method.

func (*MockDB) Iterator

func (m *MockDB) Iterator(start, end []byte) (db.Iterator, error)

Iterator mocks base method.

func (*MockDB) NewBatch

func (m *MockDB) NewBatch() db.Batch

NewBatch mocks base method.

func (*MockDB) Print

func (m *MockDB) Print() error

Print mocks base method.

func (*MockDB) ReverseIterator

func (m *MockDB) ReverseIterator(start, end []byte) (db.Iterator, error)

ReverseIterator mocks base method.

func (*MockDB) Set

func (m *MockDB) Set(arg0, arg1 []byte) error

Set mocks base method.

func (*MockDB) SetSync

func (m *MockDB) SetSync(arg0, arg1 []byte) error

SetSync mocks base method.

func (*MockDB) Stats

func (m *MockDB) Stats() map[string]string

Stats 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(key interface{}) *gomock.Call

Has indicates an expected call of Has.

func (*MockDBMockRecorder) Iterator

func (mr *MockDBMockRecorder) Iterator(start, end 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) Print

func (mr *MockDBMockRecorder) Print() *gomock.Call

Print indicates an expected call of Print.

func (*MockDBMockRecorder) ReverseIterator

func (mr *MockDBMockRecorder) ReverseIterator(start, end 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.

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

func (m *MockIterator) Domain() ([]byte, []byte)

Domain mocks base method.

func (*MockIterator) EXPECT

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

func (*MockIterator) Error

func (m *MockIterator) Error() error

Error mocks base method.

func (*MockIterator) Key

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

Key mocks base method.

func (*MockIterator) Next

func (m *MockIterator) Next()

Next 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) Domain

func (mr *MockIteratorMockRecorder) Domain() *gomock.Call

Domain indicates an expected call of Domain.

func (*MockIteratorMockRecorder) Error

func (mr *MockIteratorMockRecorder) Error() *gomock.Call

Error indicates an expected call of Error.

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

Jump to

Keyboard shortcuts

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