Documentation ¶
Overview ¶
warptest exposes common functionality for testing the warp package.
warptest exposes common functionality for testing the warp package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockClient ¶
var EmptyBlockClient BlockClient = MakeBlockClient()
EmptyBlockClient returns an error if a block is requested
func MakeBlockClient ¶
func MakeBlockClient(blkIDs ...ids.ID) BlockClient
MakeBlockClient returns a new BlockClient that returns the provided blocks. If a block is requested that isn't part of the provided blocks, an error is returned.
func (BlockClient) GetAcceptedBlock ¶
type NoOpValidatorReader ¶ added in v0.6.12
type NoOpValidatorReader struct{}
func (NoOpValidatorReader) GetValidatorAndUptime ¶ added in v0.6.12
func (NoOpValidatorReader) GetValidatorAndUptime(ids.ID) (stateinterfaces.Validator, time.Duration, time.Time, error)
Click to show internal directories.
Click to hide internal directories.