Structs§
- GasSnapshot
Args - CLI arguments for
forge snapshot
. - GasSnapshot
Config 🔒 - Additional filters that can be applied on the test results
- GasSnapshot
Diff - A Gas snapshot entry diff.
- GasSnapshot
Entry - A general entry in a gas snapshot file
Enums§
Statics§
- RE_
BASIC_ SNAPSHOT_ ENTRY - A regex that matches a basic snapshot entry like
Test:testDeposit() (gas: 58804)
Functions§
- check 🔒
- Compares the set of tests with an existing gas snapshot.
- diff 🔒
- Compare the set of tests with an existing gas snapshot.
- fmt_
change 🔒 - fmt_
pct_ 🔒change - read_
gas_ 🔒snapshot - Reads a list of gas snapshot entries from a gas snapshot file.
- within_
tolerance 🔒 - Returns true of the difference between the gas values exceeds the tolerance
- write_
to_ 🔒gas_ snapshot_ file - Writes a series of tests to a gas snapshot file after sorting them.