Expand description
The runner module
Structs§
- Env
- Container for EVM environment (cfg + block) and transaction.
- Test
Runner - Runs test macros on Foundry’s executor, with its cheatcodes, tracer and log collector.
Constants§
- DEFAULT_
INITIAL_ 🔒BALANCE - Foundry’s default
--initial-balance: 2^96 - 1 wei
Functions§
- apply_
env_ 🔒overrides - Sets the transaction and block fields a test overrides, on top of the runner’s environment
- call_
base_ 🔒gas - Intrinsic gas of a call transaction to another account, excluding calldata and access lists
- cheats_
config - Settings for Foundry cheatcodes in
hnc test. A failedvm.assert*reverts, as inforge test, so the test stops there and the failure survives avm.revertToState. - db_
error 🔒 - Wraps a database failure as a runner error
- decode_
hex 🔒 - Decodes hex the runner was given, such as compiled code or calldata, naming it in the error
- huff_
functions 🔒 - Where each outlined function of the compiled test starts, so traces can show its calls
- outcome_
of 🔒 - How a call ended, with Foundry’s exit reason turned back into the EVM’s halt reason, so
OutOfGascovers every kind of out-of-gas halt - skipped_
result 🔒 - The result of a test a
skipflag skips, which does not run - use_
sender_ 🔒nonce - Sends the next transaction of the sender with its current nonce