Module brontes_inspect::test_utils::tests
source · Expand description
Provides a set of utilities and helpers for testing inspectors within the
brontes-inspect
crate. This includes functions for creating transaction
trees, applying pricing information, and running inspectors with various
configurations to assert expected MEV (Miner Extractable Value) outcomes.
§Key Components
InspectorTestUtils
: A struct providing methods to facilitate the testing of inspectors.InspectorTxRunConfig
: Configuration struct for running single opportunity tests with inspectors.ComposerRunConfig
: Configuration struct for running composition tests across multiple inspectors.InspectorTestUtilsError
: Enum defining possible error types that can occur during test execution.
§Usage
Test utilities are primarily used in the context of unit and integration tests to verify the correctness of inspector implementations. They allow for detailed configuration of test scenarios, including specifying transaction hashes, blocks, expected profits, and gas usage, among other parameters.
Structs§
- Inspector Specific testing functionality
- This inspector test config is to configure an inspector test for a single bundle. MevTxHashes is a list of tx hashes that are expected be in the bundle.
Enums§
Constants§
- SCP’s main cex-dex contract
- The first block where the chainbound mempool data is available.