Skip to main content

assert_snapshot_gz

Function assert_snapshot_gz 

Source
pub fn assert_snapshot_gz(snapshot_name: &str, value: &str)
Expand description

Custom assertion that works with zstd compressed snapshots. Works like insta::assert_snapshot! but reads from .snap.zst files. Panics on mismatch - use check_snapshot_gz if you need to collect multiple failures.

The snapshot_name should be the full name as it appears in the snapshot file (e.g., “sas_walker_tests__loop_walker_output” for file “sas_walker_tests__loop_walker_output.snap.zst”)