Module test_utils

Module test_utils 

Available on crate feature provider only.
Expand description

Common test helpers for mocking the Provider.

Modules§

blocks
Dummy blocks and data for tests

Structs§

ExtendedAccount
An extended account for local store
MockEthProvider
A mock implementation for Provider interfaces.
NoopProvider
Supports various api interfaces for testing purposes.
TestCanonStateSubscriptions
A test ChainEventSubscriptions

Functions§

create_test_provider_factory
Creates test provider factory with mainnet chain spec.
create_test_provider_factory_with_chain_spec
Creates test provider factory with provided chain spec.
create_test_provider_factory_with_node_types
Creates test provider factory with provided chain spec.
insert_genesis
Inserts the genesis alloc from the provided chain spec into the trie.

Type Aliases§

MockNodeTypes
Mock reth_node_types::NodeTypes for testing.
MockNodeTypesWithDB
Mock reth_node_types::NodeTypesWithDB for testing.