Skip to main content

Crate revmc_statetest

Crate revmc_statetest 

Source
Expand description

§revmc-statetest

Ethereum state test runner for revmc.

Runs the official GeneralStateTests against three execution modes:

The runner is vendored from revm’s revme with revmc-specific extensions for compilation, custom handler integration, and diagnostic diffing between interpreter and compiled execution.

§Usage

This crate is not published and is used internally by revmc (state test integration tests) and revmc-cli (the statetest and statetest-diff subcommands).

See the main README for instructions on running state tests.

Modules§

btest
compiled
diagnostic
merkle_trie
runner
utils

Constants§

DEFAULT_ETHTESTS_PATH 🔒
Default path to ethereum/tests repository.
DEFAULT_FIXTURES_PATH 🔒
Default path to downloaded test fixtures (execution-spec-tests + legacytests).
STATE_TESTS_TARBALL 🔒

Functions§

find_all_json_tests
Find all JSON test files in the given path. If path is a file, returns it in a vector. If path is a directory, recursively finds all .json files.
get_ethtests_path
Get the path to ethereum/tests.
get_exec_spec_develop_blockchain_tests_path
Get the path to execution-spec-tests develop blockchain tests.
get_exec_spec_develop_state_tests_path
Get the path to execution-spec-tests develop state tests.
get_exec_spec_stable_blockchain_tests_path
Get the path to execution-spec-tests stable blockchain tests.
get_exec_spec_stable_state_tests_path
Get the path to execution-spec-tests stable state tests.
get_fixtures_path
Get the path to downloaded test fixtures (test-fixtures/).
get_general_state_tests_path
Get the path to GeneralStateTests, extracting the tarball if necessary.
get_legacy_cancun_state_tests_path
Get the path to legacy Cancun GeneralStateTests.
get_legacy_constantinople_state_tests_path
Get the path to legacy Constantinople GeneralStateTests.
workspace_root 🔒
Resolve the workspace root by walking up from CARGO_MANIFEST_DIR.