Module test_utils

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

Utilities for writing tests.

Structs§

MockP2pHandle
A handle to the mocked P2p component.

Traits§

ExtendedHeaderGeneratorExt
Extends test header generator for easier insertion into the store

Functions§

gen_filled_store
Generate a store pre-filled with headers.
listening_test_node_builder
NodeBuilder with listen address and default values for the usage in tests.
new_block_ranges
Convenience function for creating a BlockRange out of a list of N..=M ranges
test_node_builder
NodeBuilder with default values for the usage in tests.