Module test_utils
Available on crate features
arbitrary
or test-utils
only.Expand description
Utilities for testing.
Traits§
- Test
Block test-utils
- An extension trait for
Block
s that allows for mutable access to the block’s internals. - Test
Header - A helper trait for
Header
s that allows for mutable access to the headers values.
Functions§
- generate_
valid_ header - Generates a header which is valid with respect to past and future forks. This means, for example, that if the withdrawals root is present, the base fee per gas is also present.
- valid_
header_ strategy - Generates a proptest strategy for constructing an instance of a header which is valid with respect to past and future forks.