Module test_utils

Source
Available on crate feature test-utils only.
Expand description

Common test helpers for mocking out Consensus, Downloaders and Header Clients.

Structs§

NoopFullBlockClient
A headers+bodies client implementation that does nothing.
TestBodiesClient
A test client for fetching bodies
TestFullBlockClient
A headers+bodies client that stores the headers and bodies in memory, with an artificial soft bodies response limit that is set to 20 by default.
TestHeaderDownloader
A test downloader which just returns the values that have been pushed to it.
TestHeadersClient
A test client for fetching headers