mocks

package
v1.65.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB added in v1.65.0

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func (*DB) Begin added in v1.65.0

func (_m *DB) Begin()

Begin provides a mock function with given fields:

func (*DB) BeginTx added in v1.65.0

func (_m *DB) BeginTx() (db.TxKV, error)

BeginTx provides a mock function with given fields:

func (*DB) Close added in v1.65.0

func (_m *DB) Close()

Close provides a mock function with given fields:

func (*DB) Commit added in v1.65.0

func (_m *DB) Commit() error

Commit provides a mock function with given fields:

func (*DB) CompactRange added in v1.65.0

func (_m *DB) CompactRange(start []byte, limit []byte) error

CompactRange provides a mock function with given fields: start, limit

func (*DB) Delete added in v1.65.0

func (_m *DB) Delete(_a0 []byte) error

Delete provides a mock function with given fields: _a0

func (*DB) DeleteSync added in v1.65.0

func (_m *DB) DeleteSync(_a0 []byte) error

DeleteSync provides a mock function with given fields: _a0

func (*DB) Get added in v1.65.0

func (_m *DB) Get(key []byte) ([]byte, error)

Get provides a mock function with given fields: key

func (*DB) GetCache added in v1.65.0

func (_m *DB) GetCache() *lru.ARCCache

GetCache provides a mock function with given fields:

func (*DB) Iterator added in v1.65.0

func (_m *DB) Iterator(start []byte, end []byte, reserver bool) db.Iterator

Iterator provides a mock function with given fields: start, end, reserver

func (*DB) NewBatch added in v1.65.0

func (_m *DB) NewBatch(sync bool) db.Batch

NewBatch provides a mock function with given fields: sync

func (*DB) Print added in v1.65.0

func (_m *DB) Print()

Print provides a mock function with given fields:

func (*DB) Rollback added in v1.65.0

func (_m *DB) Rollback()

Rollback provides a mock function with given fields:

func (*DB) Set added in v1.65.0

func (_m *DB) Set(key []byte, value []byte) error

Set provides a mock function with given fields: key, value

func (*DB) SetCacheSize added in v1.65.0

func (_m *DB) SetCacheSize(size int)

SetCacheSize provides a mock function with given fields: size

func (*DB) SetSync added in v1.65.0

func (_m *DB) SetSync(_a0 []byte, _a1 []byte) error

SetSync provides a mock function with given fields: _a0, _a1

func (*DB) Stats added in v1.65.0

func (_m *DB) Stats() map[string]string

Stats provides a mock function with given fields:

type KV

type KV struct {
	mock.Mock
}

KV is an autogenerated mock type for the KV type

func (*KV) Begin

func (_m *KV) Begin()

Begin provides a mock function with given fields:

func (*KV) Commit

func (_m *KV) Commit() error

Commit provides a mock function with given fields:

func (*KV) Get

func (_m *KV) Get(key []byte) ([]byte, error)

Get provides a mock function with given fields: key

func (*KV) Rollback

func (_m *KV) Rollback()

Rollback provides a mock function with given fields:

func (*KV) Set

func (_m *KV) Set(key []byte, value []byte) error

Set provides a mock function with given fields: key, value

type KVDB

type KVDB struct {
	mock.Mock
}

KVDB is an autogenerated mock type for the KVDB type

func (*KVDB) Begin

func (_m *KVDB) Begin()

Begin provides a mock function with given fields:

func (*KVDB) Commit

func (_m *KVDB) Commit() error

Commit provides a mock function with given fields:

func (*KVDB) Get

func (_m *KVDB) Get(key []byte) ([]byte, error)

Get provides a mock function with given fields: key

func (*KVDB) List

func (_m *KVDB) List(prefix []byte, key []byte, count int32, direction int32) ([][]byte, error)

List provides a mock function with given fields: prefix, key, count, direction

func (*KVDB) PrefixCount

func (_m *KVDB) PrefixCount(prefix []byte) int64

PrefixCount provides a mock function with given fields: prefix

func (*KVDB) Rollback

func (_m *KVDB) Rollback()

Rollback provides a mock function with given fields:

func (*KVDB) Set

func (_m *KVDB) Set(key []byte, value []byte) error

Set provides a mock function with given fields: key, value

Jump to

Keyboard shortcuts

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