tmelinktest

package
v0.0.0-...-506a26f Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package tmelinktest contains helpers for tests involving the tmelink package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PHFetcher

type PHFetcher struct {
	// Bidirectional request channel,
	// so tests can inspect requests.
	ReqCh chan tmelink.ProposedHeaderFetchRequest

	// Bidirectional output channel,
	// so tests can send responses.
	FetchedCh chan tmconsensus.ProposedHeader
}

PHFetcher can be used in tests where a tmelink.ProposedHeaderFetcher is needed.

func NewPHFetcher

func NewPHFetcher(reqSz, fetchedSz int) PHFetcher

func (PHFetcher) ProposedHeaderFetcher

func (f PHFetcher) ProposedHeaderFetcher() tmelink.ProposedHeaderFetcher

ProposedHeaderFetcher returns a ProposedHeaderFetcher struct, as the engine and its internal components expect.

Jump to

Keyboard shortcuts

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