Module test_utils
Available on crate feature
test-utils
only.Expand description
Common test helpers for mocking a pool Internal helpers for testing.
Structs§
- The range of each type of fee, for the different transaction types
- A configured distribution that can generate transactions
- A factory for creating and managing various types of mock transactions.
- A ratio of each of the configured transaction types. The percentages sum up to 100, this is enforced in
MockTransactionRatio::new
by an assert. - A set of
MockTransaction
s that can be modified at once - Structure encapsulating a
TestPool
used for testing - A Builder type to configure and create a transaction.
- A generator for transactions for testing purposes.
Enums§
- A Bare transaction type used for testing.
- Indicates whether or not the non-conflicting transaction set generated includes only blobs, or a mix of transaction types.
Functions§
- Create an empty
TxPool
- Returns a new Pool with default field values used for testing purposes
Type Aliases§
MockOrdering
is just aCoinbaseTipOrdering
withMockTransaction
- A transaction pool implementation using
MockOrdering
for transaction ordering. - A validated transaction in the transaction pool, using
MockTransaction
as the transaction type. - A Pool used for testing