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.