warptest

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: GPL-3.0, LGPL-3.0 Imports: 10 Imported by: 0

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

type BlockClient func(ctx context.Context, blockID ids.ID) (snowman.Block, error)
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 (f BlockClient) GetAcceptedBlock(ctx context.Context, blockID ids.ID) (snowman.Block, error)

type NoOpValidatorReader added in v0.6.12

type NoOpValidatorReader struct{}

func (NoOpValidatorReader) GetValidatorAndUptime added in v0.6.12

Jump to

Keyboard shortcuts

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