Settings
Help

Module runner

Module runner 

Source
Expand description

The Forge test runner.

StructsΒ§

ContractRunner
A type that executes all tests of a contract
FunctionRunner πŸ”’
Executes a single test function, returning a TestResult.
InvariantPersistedFailure πŸ”’
Holds data about a persisted invariant failure.

ConstantsΒ§

LIBRARY_DEPLOYER
When running tests, we deploy all external libraries present in the project. To avoid additional libraries affecting nonces of senders used in tests, we are using separate address to predeploy libraries.

FunctionsΒ§

fuzzer_with_cases πŸ”’
persisted_call_sequence πŸ”’
Helper function to load failed call sequence from file. Ignores failure if generated with different test contract than the current one.
test_paths πŸ”’
Helper function to set test corpus dir and to compose persisted failure paths.