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 (PHFetcher) ProposedHeaderFetcher ¶
func (f PHFetcher) ProposedHeaderFetcher() tmelink.ProposedHeaderFetcher
ProposedHeaderFetcher returns a ProposedHeaderFetcher struct, as the engine and its internal components expect.
Click to show internal directories.
Click to hide internal directories.