Module snapshot

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.