Expand description
The Forge test runner.
Structs§
- Contract
Runner - A type that executes all tests of a contract
- Function
Runner 🔒 - Executes a single test function, returning a
TestResult
. - Invariant
Persisted 🔒Failure - 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 - invariant_
failure_ 🔒paths - Helper functions to return canonicalized invariant failure paths.
- persisted_
call_ 🔒sequence - Helper function to load failed call sequence from file. Ignores failure if generated with different test contract than the current one.