mocks

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockStore

type BlockStore struct {
	mock.Mock
}

BlockStore is an autogenerated mock type for the BlockStore type

func (*BlockStore) GetTx

func (_m *BlockStore) GetTx(hash common.Hash) (types.Tx, *types.TxEntry)

GetTx provides a mock function with given fields: hash

func (*BlockStore) Height

func (_m *BlockStore) Height() uint64

Height provides a mock function with given fields:

func (*BlockStore) LoadBlock

func (_m *BlockStore) LoadBlock(height uint64) *types.Block

LoadBlock provides a mock function with given fields: height

func (*BlockStore) LoadBlockByHash

func (_m *BlockStore) LoadBlockByHash(hash common.Hash) *types.Block

LoadBlockByHash provides a mock function with given fields: hash

func (*BlockStore) LoadBlockMeta

func (_m *BlockStore) LoadBlockMeta(height uint64) *types.BlockMeta

LoadBlockMeta provides a mock function with given fields: height

func (*BlockStore) LoadBlockMetaByHash

func (_m *BlockStore) LoadBlockMetaByHash(hash common.Hash) *types.BlockMeta

LoadBlockMetaByHash provides a mock function with given fields: hash

type MemPool

type MemPool struct {
	mock.Mock
}

MemPool is an autogenerated mock type for the MemPool type

func (*MemPool) AddTx

func (_m *MemPool) AddTx(tx types.Tx) error

AddTx provides a mock function with given fields: tx

func (*MemPool) Flush

func (_m *MemPool) Flush()

Flush provides a mock function with given fields:

func (*MemPool) GoodTxsSize

func (_m *MemPool) GoodTxsSize() int

GoodTxsSize provides a mock function with given fields:

func (*MemPool) KeyImageExists

func (_m *MemPool) KeyImageExists(key lk_crypto_libstypes.Key) bool

KeyImageExists provides a mock function with given fields: key

func (*MemPool) PendingTxs

func (_m *MemPool) PendingTxs(nums int) (types.Txs, error)

PendingTxs provides a mock function with given fields: nums

type P2PManager

type P2PManager struct {
	mock.Mock
}

P2PManager is an autogenerated mock type for the P2PManager type

func (*P2PManager) NumPeers

func (_m *P2PManager) NumPeers() (int, int, int)

NumPeers provides a mock function with given fields:

func (*P2PManager) Peers

func (_m *P2PManager) Peers() p2p.IPeerSet

Peers provides a mock function with given fields:

type UtxoStore

type UtxoStore struct {
	mock.Mock
}

UtxoStore is an autogenerated mock type for the UtxoStore type

func (*UtxoStore) GetMaxUtxoOutputSeq

func (_m *UtxoStore) GetMaxUtxoOutputSeq(token common.Address) int64

GetMaxUtxoOutputSeq provides a mock function with given fields: token

func (*UtxoStore) GetUtxoOutput

func (_m *UtxoStore) GetUtxoOutput(token common.Address, index uint64) (*types.UTXOOutputData, error)

GetUtxoOutput provides a mock function with given fields: token, index

func (*UtxoStore) HaveTxKeyimgAsSpent

func (_m *UtxoStore) HaveTxKeyimgAsSpent(img *lk_crypto_libstypes.Key) bool

HaveTxKeyimgAsSpent provides a mock function with given fields: img

Jump to

Keyboard shortcuts

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