mocks

package
v6.4.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonStore

type CommonStore struct {
	mock.Mock
}

CommonStore is an autogenerated mock type for the CommonStore type

func (*CommonStore) GetKey

func (_m *CommonStore) GetKey(key []byte) ([]byte, error)

GetKey provides a mock function with given fields: key

func (*CommonStore) List

func (_m *CommonStore) List(prefix []byte) ([][]byte, error)

List provides a mock function with given fields: prefix

func (*CommonStore) PrefixCount

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

PrefixCount provides a mock function with given fields: prefix

func (*CommonStore) Set

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

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

func (*CommonStore) SetSync

func (_m *CommonStore) SetSync(key []byte, value []byte) error

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

type PushWorkNotify

type PushWorkNotify struct {
	mock.Mock
}

PushWorkNotify is an autogenerated mock type for the PushWorkNotify type

func (*PushWorkNotify) AddTask

func (_m *PushWorkNotify) AddTask(cb *types.BlockSeqCB)

AddTask provides a mock function with given fields: cb

func (*PushWorkNotify) UpdateSeq

func (_m *PushWorkNotify) UpdateSeq(seq int64)

UpdateSeq provides a mock function with given fields: seq

type SequenceStore

type SequenceStore struct {
	mock.Mock
}

SequenceStore is an autogenerated mock type for the SequenceStore type

func (*SequenceStore) GetBlockHeaderByHash

func (_m *SequenceStore) GetBlockHeaderByHash(hash []byte) (*types.Header, error)

GetBlockHeaderByHash provides a mock function with given fields: hash

func (*SequenceStore) GetBlockSequence

func (_m *SequenceStore) GetBlockSequence(seq int64) (*types.BlockSequence, error)

GetBlockSequence provides a mock function with given fields: seq

func (*SequenceStore) GetSequenceByHash

func (_m *SequenceStore) GetSequenceByHash(hash []byte) (int64, error)

GetSequenceByHash provides a mock function with given fields: hash

func (*SequenceStore) LastHeader

func (_m *SequenceStore) LastHeader() *types.Header

LastHeader provides a mock function with given fields:

func (*SequenceStore) LoadBlockBySequence

func (_m *SequenceStore) LoadBlockBySequence(seq int64) (*types.BlockDetail, int, error)

LoadBlockBySequence provides a mock function with given fields: seq

func (*SequenceStore) LoadBlockLastSequence

func (_m *SequenceStore) LoadBlockLastSequence() (int64, error)

LoadBlockLastSequence provides a mock function with given fields:

Jump to

Keyboard shortcuts

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