mocks

package
v0.34.22 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockStore added in v0.34.14

type BlockStore struct {
	mock.Mock
}

BlockStore is an autogenerated mock type for the BlockStore type

func NewBlockStore added in v0.34.20

func NewBlockStore(t NewBlockStoreT) *BlockStore

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

func (*BlockStore) Base added in v0.34.14

func (_m *BlockStore) Base() int64

Base provides a mock function with given fields:

func (*BlockStore) Height added in v0.34.14

func (_m *BlockStore) Height() int64

Height provides a mock function with given fields:

func (*BlockStore) LoadBaseMeta added in v0.34.14

func (_m *BlockStore) LoadBaseMeta() *types.BlockMeta

LoadBaseMeta provides a mock function with given fields:

func (*BlockStore) LoadBlock added in v0.34.14

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

LoadBlock provides a mock function with given fields: height

func (*BlockStore) LoadBlockByHash added in v0.34.14

func (_m *BlockStore) LoadBlockByHash(hash []byte) *types.Block

LoadBlockByHash provides a mock function with given fields: hash

func (*BlockStore) LoadBlockCommit added in v0.34.14

func (_m *BlockStore) LoadBlockCommit(height int64) *types.Commit

LoadBlockCommit provides a mock function with given fields: height

func (*BlockStore) LoadBlockMeta added in v0.34.14

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

LoadBlockMeta provides a mock function with given fields: height

func (*BlockStore) LoadBlockPart added in v0.34.14

func (_m *BlockStore) LoadBlockPart(height int64, index int) *types.Part

LoadBlockPart provides a mock function with given fields: height, index

func (*BlockStore) LoadSeenCommit added in v0.34.14

func (_m *BlockStore) LoadSeenCommit(height int64) *types.Commit

LoadSeenCommit provides a mock function with given fields: height

func (*BlockStore) PruneBlocks added in v0.34.14

func (_m *BlockStore) PruneBlocks(height int64) (uint64, error)

PruneBlocks provides a mock function with given fields: height

func (*BlockStore) SaveBlock added in v0.34.14

func (_m *BlockStore) SaveBlock(block *types.Block, blockParts *types.PartSet, seenCommit *types.Commit)

SaveBlock provides a mock function with given fields: block, blockParts, seenCommit

func (*BlockStore) Size added in v0.34.14

func (_m *BlockStore) Size() int64

Size provides a mock function with given fields:

type EvidencePool

type EvidencePool struct {
	mock.Mock
}

EvidencePool is an autogenerated mock type for the EvidencePool type

func NewEvidencePool added in v0.34.20

func NewEvidencePool(t NewEvidencePoolT) *EvidencePool

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

func (*EvidencePool) AddEvidence

func (_m *EvidencePool) AddEvidence(_a0 types.Evidence) error

AddEvidence provides a mock function with given fields: _a0

func (*EvidencePool) CheckEvidence

func (_m *EvidencePool) CheckEvidence(_a0 types.EvidenceList) error

CheckEvidence provides a mock function with given fields: _a0

func (*EvidencePool) PendingEvidence

func (_m *EvidencePool) PendingEvidence(maxBytes int64) ([]types.Evidence, int64)

PendingEvidence provides a mock function with given fields: maxBytes

func (*EvidencePool) Update

func (_m *EvidencePool) Update(_a0 state.State, _a1 types.EvidenceList)

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

type NewBlockStoreT added in v0.34.21

type NewBlockStoreT interface {
	mock.TestingT
	Cleanup(func())
}

type NewEvidencePoolT added in v0.34.21

type NewEvidencePoolT interface {
	mock.TestingT
	Cleanup(func())
}

type NewStoreT added in v0.34.21

type NewStoreT interface {
	mock.TestingT
	Cleanup(func())
}

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore added in v0.34.20

func NewStore(t NewStoreT) *Store

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

func (*Store) Bootstrap

func (_m *Store) Bootstrap(_a0 state.State) error

Bootstrap provides a mock function with given fields: _a0

func (*Store) Close added in v0.34.15

func (_m *Store) Close() error

Close provides a mock function with given fields:

func (*Store) Load

func (_m *Store) Load() (state.State, error)

Load provides a mock function with given fields:

func (*Store) LoadABCIResponses

func (_m *Store) LoadABCIResponses(_a0 int64) (*tendermintstate.ABCIResponses, error)

LoadABCIResponses provides a mock function with given fields: _a0

func (*Store) LoadConsensusParams

func (_m *Store) LoadConsensusParams(_a0 int64) (types.ConsensusParams, error)

LoadConsensusParams provides a mock function with given fields: _a0

func (*Store) LoadFromDBOrGenesisDoc

func (_m *Store) LoadFromDBOrGenesisDoc(_a0 *tenderminttypes.GenesisDoc) (state.State, error)

LoadFromDBOrGenesisDoc provides a mock function with given fields: _a0

func (*Store) LoadFromDBOrGenesisFile

func (_m *Store) LoadFromDBOrGenesisFile(_a0 string) (state.State, error)

LoadFromDBOrGenesisFile provides a mock function with given fields: _a0

func (*Store) LoadLastABCIResponse added in v0.34.21

func (_m *Store) LoadLastABCIResponse(_a0 int64) (*tendermintstate.ABCIResponses, error)

LoadLastABCIResponse provides a mock function with given fields: _a0

func (*Store) LoadValidators

func (_m *Store) LoadValidators(_a0 int64) (*tenderminttypes.ValidatorSet, error)

LoadValidators provides a mock function with given fields: _a0

func (*Store) PruneStates

func (_m *Store) PruneStates(_a0 int64, _a1 int64) error

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

func (*Store) Save

func (_m *Store) Save(_a0 state.State) error

Save provides a mock function with given fields: _a0

func (*Store) SaveABCIResponses

func (_m *Store) SaveABCIResponses(_a0 int64, _a1 *tendermintstate.ABCIResponses) error

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

Jump to

Keyboard shortcuts

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