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 ¶
View Source
var ErrNotFound = errors.New("not found")
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 ¶
func (BlockClient) LastQuasarHeight ¶ added in v1.104.8
func (f BlockClient) LastQuasarHeight() uint64
LastQuasarHeight reports the export-final (Quasar) height for the test client. It returns the max uint64 so a mock block is always treated as EXPORT-final — these tests exercise the warp signature/verification path, not the two-tier export gate (which is covered by its own test).
type NoOpValidatorReader ¶
type NoOpValidatorReader struct{}
func (NoOpValidatorReader) GetValidatorAndUptime ¶
func (NoOpValidatorReader) GetValidatorAndUptime(ids.ID) (stateinterfaces.Validator, time.Duration, time.Time, error)
Click to show internal directories.
Click to hide internal directories.