mock

package
v0.0.1-alpha.1 Latest Latest
Warning

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

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

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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(arg0 []byte) (bool, error)

Has mocks base method.

func (*MockDB) Iterator

func (m *MockDB) Iterator(arg0, arg1 []byte) (db.Iterator, error)

Iterator mocks base method.

func (*MockDB) NewBatch

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

NewBatch mocks base method.

func (*MockDB) NewBatchWithSize

func (m *MockDB) NewBatchWithSize(arg0 int) db.Batch

NewBatchWithSize mocks base method.

func (*MockDB) Print

func (m *MockDB) Print() error

Print mocks base method.

func (*MockDB) ReverseIterator

func (m *MockDB) ReverseIterator(arg0, arg1 []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(arg0 interface{}) *gomock.Call

Has indicates an expected call of Has.

func (*MockDBMockRecorder) Iterator

func (mr *MockDBMockRecorder) Iterator(arg0, arg1 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) NewBatchWithSize

func (mr *MockDBMockRecorder) NewBatchWithSize(arg0 interface{}) *gomock.Call

NewBatchWithSize indicates an expected call of NewBatchWithSize.

func (*MockDBMockRecorder) Print

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

Print indicates an expected call of Print.

func (*MockDBMockRecorder) ReverseIterator

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

Jump to

Keyboard shortcuts

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