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§

Enums§

Constants§

Functions§