pub fn assert_snapshot<S: AsRef<str>, T: Debug>(snapshot_name: S, val: &T)
Expand description

Asserts that the given object matches the snapshot saved in the snapshot file. The object is serialized using the Debug trait.

If the value differs from the snapshot, the assertion fails and prints a colored diff output.