Module snapshot

Source

Structs§

GasSnapshotArgs
CLI arguments for forge snapshot.
GasSnapshotConfig 🔒
Additional filters that can be applied on the test results
GasSnapshotDiff
A Gas snapshot entry diff.
GasSnapshotEntry
A general entry in a gas snapshot file

Enums§

Format

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.