Skip to main content

Module runner

Module runner 

Source
Expand description

The Forge test runner.

Structsยง

ContractRunner
A type that executes all tests of a contract
ContractRunnerContext ๐Ÿ”’
FunctionRunner ๐Ÿ”’
Executes a single test function, returning a TestResult.
FuzzBranchFrontierArtifact ๐Ÿ”’
FuzzBranchFrontierOperands ๐Ÿ”’
FuzzBranchFrontierRecord ๐Ÿ”’
FuzzBranchFrontierSite ๐Ÿ”’
ImportedFuzzFrontier ๐Ÿ”’
ImportedSymbolicCorpusSeeds ๐Ÿ”’
InvariantCampaignScope ๐Ÿ”’
InvariantCampaignSelection ๐Ÿ”’
InvariantPersistedFailure ๐Ÿ”’
Holds data about a persisted invariant failure.
ReplayContext ๐Ÿ”’
Borrowed context shared by primary-invariant and handler-side replay helpers.
ReplayedInvariantSequence ๐Ÿ”’
SymbolicHandlerReplayStorage ๐Ÿ”’
SymbolicSequenceFailure ๐Ÿ”’

Enumsยง

SymbolicFuzzSeedReplay ๐Ÿ”’

Constantsยง

FUZZ_BRANCH_FRONTIER_FILE ๐Ÿ”’
FUZZ_BRANCH_FRONTIER_SCHEMA ๐Ÿ”’

Functionsยง

apply_symbolic_storage_assignments ๐Ÿ”’
attach_imported_symbolic_corpus_seeds ๐Ÿ”’
base_counterexample_to_tx ๐Ÿ”’
base_counterexamples_to_txes ๐Ÿ”’
Converts a persisted counterexample to BasicTxDetails, setting show_solidity in place.
count_runnable_invariant_campaign_anchors ๐Ÿ”’
frontier_filter_display ๐Ÿ”’
frontier_selector ๐Ÿ”’
function_matches_network_pass ๐Ÿ”’
fuzzer_with_cases ๐Ÿ”’
inline_config_for ๐Ÿ”’
invariant_contract_name ๐Ÿ”’
Returns the invariant test contract name without the file path prefix.
invariant_failure_dir ๐Ÿ”’
Returns the contract-level invariant failure directory.
invariant_failure_file ๐Ÿ”’
Returns the current invariant failure cache path.
invariant_handler_failure_name ๐Ÿ”’
invariant_suite_configs_match ๐Ÿ”’
invariant_suite_paths ๐Ÿ”’
Sets the invariant corpus directory and returns the contract-level failure directory.
is_symbolic_frontier_opcode ๐Ÿ”’
narrow_generated_corpus_root ๐Ÿ”’
narrow_generated_fuzz_corpus_root ๐Ÿ”’
narrow_generated_invariant_corpus_root ๐Ÿ”’
parse_frontier_selector ๐Ÿ”’
parse_frontier_selectors ๐Ÿ”’
persisted_call_sequence ๐Ÿ”’
Helper function to load failed call sequence from file. Ignores failure if generated with different invariant settings than the current ones.
persisted_invariant_failure ๐Ÿ”’
Loads a persisted invariant failure from the new cache path, falling back to the legacy path.
record_handler_failure_with_storage ๐Ÿ”’
Persists a handler-side assertion bug with symbolic replay storage.
record_invariant_failure ๐Ÿ”’
Helper function to persist invariant failure.
record_invariant_failure_with_storage ๐Ÿ”’
Helper function to persist invariant failure with symbolic replay storage.
replay_persisted_call_sequence ๐Ÿ”’
Converts a persisted BaseCounterExample sequence into BasicTxDetails (applying ctx.show_solidity in place) and replays it via check_sequence.
replay_persisted_handler_failures ๐Ÿ”’
Replays persisted handler-side assertion bugs. A file is kept only if the anchor still asserts at the same (reverter, selector) site; stale files (anchor no longer asserts, asserts at a different site, or earlier call asserts) are deleted in place.
sanitize_symbolic_artifact_component ๐Ÿ”’
select_invariant_campaigns ๐Ÿ”’
should_symbolically_import_fuzz_corpus ๐Ÿ”’
should_symbolically_seed_fuzz_corpus ๐Ÿ”’
should_symbolically_use_fuzz_frontiers ๐Ÿ”’
symbolic_artifact_file_name ๐Ÿ”’
symbolic_artifact_handler_failure_matches ๐Ÿ”’
symbolic_artifact_predicate_failure_matches ๐Ÿ”’
symbolic_invariant_counterexample_calls ๐Ÿ”’
symbolic_invariant_failure_site ๐Ÿ”’
symbolic_invariant_failure_site_matches ๐Ÿ”’
symbolic_invariant_unsupported_domain_reason ๐Ÿ”’
test_paths ๐Ÿ”’
Helper function to set test corpus dir and to compose persisted failure paths.
validate_single_call_symbolic_replay ๐Ÿ”’

Type Aliasesยง

HandlerFailureKey ๐Ÿ”’
HandlerFailureMap ๐Ÿ”’
HandlerFailureStorageKey ๐Ÿ”’
SymbolicHandlerStorageMap ๐Ÿ”’