mocks

package
v0.0.0-...-1c4572a Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

type KV struct {
	mock.Mock
}

KV is an autogenerated mock type for the KV type

func (*KV) BatchGet

func (_m *KV) BatchGet(keys [][]byte) ([][]byte, error)

BatchGet provides a mock function with given fields: keys

func (*KV) Begin

func (_m *KV) Begin()

Begin provides a mock function with given fields:

func (*KV) Commit

func (_m *KV) Commit()

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

func (_m *KVDB) BatchGet(keys [][]byte) ([][]byte, error)

BatchGet provides a mock function with given fields: keys

func (*KVDB) Begin

func (_m *KVDB) Begin()

Begin provides a mock function with given fields:

func (*KVDB) Commit

func (_m *KVDB) Commit()

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