warptest

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: GPL-3.0, LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

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)

Jump to

Keyboard shortcuts

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