mockkvstore

package
v0.9.19 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVIterator added in v0.9.9

type KVIterator struct {
	mock.Mock
}

KVIterator is an autogenerated mock type for the KVIterator type

func NewKVIterator added in v0.9.18

func NewKVIterator(t mockConstructorTestingTNewKVIterator) *KVIterator

NewKVIterator creates a new instance of KVIterator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*KVIterator) Key added in v0.9.9

func (_m *KVIterator) Key() string

Key provides a mock function with given fields:

func (*KVIterator) Last added in v0.9.9

func (_m *KVIterator) Last() bool

Last provides a mock function with given fields:

func (*KVIterator) Next added in v0.9.9

func (_m *KVIterator) Next() bool

Next provides a mock function with given fields:

func (*KVIterator) Prev added in v0.9.9

func (_m *KVIterator) Prev() bool

Prev provides a mock function with given fields:

func (*KVIterator) Release added in v0.9.9

func (_m *KVIterator) Release()

Release provides a mock function with given fields:

func (*KVIterator) Seek added in v0.9.9

func (_m *KVIterator) Seek(_a0 string) bool

Seek provides a mock function with given fields: _a0

func (*KVIterator) Value added in v0.9.9

func (_m *KVIterator) Value() []byte

Value provides a mock function with given fields:

type KVStore

type KVStore struct {
	mock.Mock
}

KVStore is an autogenerated mock type for the KVStore type

func NewKVStore added in v0.9.18

func NewKVStore(t mockConstructorTestingTNewKVStore) *KVStore

NewKVStore creates a new instance of KVStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*KVStore) Close

func (_m *KVStore) Close() error

Close provides a mock function with given fields:

func (*KVStore) Delete

func (_m *KVStore) Delete(key string) error

Delete provides a mock function with given fields: key

func (*KVStore) Get

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

Get provides a mock function with given fields: key

func (*KVStore) Init

func (_m *KVStore) Init() error

Init provides a mock function with given fields:

func (*KVStore) NewIterator

func (_m *KVStore) NewIterator() kvstore.KVIterator

NewIterator provides a mock function with given fields:

func (*KVStore) NewIteratorWithRange

func (_m *KVStore) NewIteratorWithRange(keyRange interface{}) kvstore.KVIterator

NewIteratorWithRange provides a mock function with given fields: keyRange

func (*KVStore) Put

func (_m *KVStore) Put(key string, val []byte) error

Put provides a mock function with given fields: key, val

Jump to

Keyboard shortcuts

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