mocks

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 4 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 NewBlockStore

func NewBlockStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*BlockStore) Base

func (_m *BlockStore) Base() int64

Base provides a mock function with given fields:

func (*BlockStore) Close added in v0.38.0

func (_m *BlockStore) Close() error

Close provides a mock function with given fields:

func (*BlockStore) DeleteLatestBlock

func (_m *BlockStore) DeleteLatestBlock() error

DeleteLatestBlock provides a mock function with given fields:

func (*BlockStore) Height

func (_m *BlockStore) Height() int64

Height provides a mock function with given fields:

func (*BlockStore) LoadBaseMeta

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

LoadBaseMeta provides a mock function with given fields:

func (*BlockStore) LoadBlock

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

LoadBlock provides a mock function with given fields: height

func (*BlockStore) LoadBlockByHash

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

LoadBlockByHash provides a mock function with given fields: hash

func (*BlockStore) LoadBlockCommit

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

LoadBlockCommit provides a mock function with given fields: height

func (*BlockStore) LoadBlockExtendedCommit added in v0.38.0

func (_m *BlockStore) LoadBlockExtendedCommit(height int64) *types.ExtendedCommit

LoadBlockExtendedCommit provides a mock function with given fields: height

func (*BlockStore) LoadBlockMeta

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

LoadBlockMeta provides a mock function with given fields: height

func (*BlockStore) LoadBlockMetaByHash

func (_m *BlockStore) LoadBlockMetaByHash(hash []byte) *types.BlockMeta

LoadBlockMetaByHash provides a mock function with given fields: hash

func (*BlockStore) LoadBlockPart

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

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

func (*BlockStore) LoadSeenCommit

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

LoadSeenCommit provides a mock function with given fields: height

func (*BlockStore) PruneBlocks

func (_m *BlockStore) PruneBlocks(height int64, _a1 state.State) (uint64, int64, error)

PruneBlocks provides a mock function with given fields: height, _a1

func (*BlockStore) SaveBlock

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) SaveBlockWithExtendedCommit added in v0.38.0

func (_m *BlockStore) SaveBlockWithExtendedCommit(block *types.Block, blockParts *types.PartSet, seenCommit *types.ExtendedCommit)

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

func (*BlockStore) Size

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

func NewEvidencePool(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*EvidencePool) AddEvidence

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

AddEvidence provides a mock function with given fields: ev

func (*EvidencePool) CheckEvidence

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

CheckEvidence provides a mock function with given fields: evList

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, evList types.EvidenceList)

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

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Store) Bootstrap

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

Bootstrap provides a mock function with given fields: _a0

func (*Store) Close

func (_m *Store) Close() error

Close provides a mock function with given fields:

func (*Store) GetABCIResRetainHeight added in v1.0.0

func (_m *Store) GetABCIResRetainHeight() (int64, error)

GetABCIResRetainHeight provides a mock function with given fields:

func (*Store) GetApplicationRetainHeight added in v1.0.0

func (_m *Store) GetApplicationRetainHeight() (int64, error)

GetApplicationRetainHeight provides a mock function with given fields:

func (*Store) GetCompanionBlockRetainHeight added in v1.0.0

func (_m *Store) GetCompanionBlockRetainHeight() (int64, error)

GetCompanionBlockRetainHeight provides a mock function with given fields:

func (*Store) GetOfflineStateSyncHeight added in v0.38.0

func (_m *Store) GetOfflineStateSyncHeight() (int64, error)

GetOfflineStateSyncHeight 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) LoadConsensusParams

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

LoadConsensusParams provides a mock function with given fields: height

func (*Store) LoadFinalizeBlockResponse added in v0.38.0

func (_m *Store) LoadFinalizeBlockResponse(height int64) (*v1.FinalizeBlockResponse, error)

LoadFinalizeBlockResponse provides a mock function with given fields: height

func (*Store) LoadFromDBOrGenesisDoc

func (_m *Store) LoadFromDBOrGenesisDoc(doc *types.GenesisDoc) (state.State, error)

LoadFromDBOrGenesisDoc provides a mock function with given fields: doc

func (*Store) LoadFromDBOrGenesisFile

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

LoadFromDBOrGenesisFile provides a mock function with given fields: filepath

func (*Store) LoadLastFinalizeBlockResponse added in v0.38.0

func (_m *Store) LoadLastFinalizeBlockResponse(height int64) (*v1.FinalizeBlockResponse, error)

LoadLastFinalizeBlockResponse provides a mock function with given fields: height

func (*Store) LoadValidators

func (_m *Store) LoadValidators(height int64) (*types.ValidatorSet, error)

LoadValidators provides a mock function with given fields: height

func (*Store) PruneABCIResponses added in v1.0.0

func (_m *Store) PruneABCIResponses(targetRetainHeight int64, forceCompact bool) (int64, int64, error)

PruneABCIResponses provides a mock function with given fields: targetRetainHeight, forceCompact

func (*Store) PruneStates

func (_m *Store) PruneStates(fromHeight int64, toHeight int64, evidenceThresholdHeight int64, previouslyPrunedStates uint64) (uint64, error)

PruneStates provides a mock function with given fields: fromHeight, toHeight, evidenceThresholdHeight, previouslyPrunedStates

func (*Store) Save

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

Save provides a mock function with given fields: _a0

func (*Store) SaveABCIResRetainHeight added in v1.0.0

func (_m *Store) SaveABCIResRetainHeight(height int64) error

SaveABCIResRetainHeight provides a mock function with given fields: height

func (*Store) SaveApplicationRetainHeight added in v1.0.0

func (_m *Store) SaveApplicationRetainHeight(height int64) error

SaveApplicationRetainHeight provides a mock function with given fields: height

func (*Store) SaveCompanionBlockRetainHeight added in v1.0.0

func (_m *Store) SaveCompanionBlockRetainHeight(height int64) error

SaveCompanionBlockRetainHeight provides a mock function with given fields: height

func (*Store) SaveFinalizeBlockResponse added in v0.38.0

func (_m *Store) SaveFinalizeBlockResponse(height int64, res *v1.FinalizeBlockResponse) error

SaveFinalizeBlockResponse provides a mock function with given fields: height, res

func (*Store) SetOfflineStateSyncHeight added in v0.38.0

func (_m *Store) SetOfflineStateSyncHeight(height int64) error

SetOfflineStateSyncHeight provides a mock function with given fields: height

Jump to

Keyboard shortcuts

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