Macro insta::assert_snapshot
source · macro_rules! assert_snapshot { ($($arg:tt)*) => { ... }; }
Expand description
Asserts a string snapshot.
This is the simplest of all assertion methods. It accepts any value that
implements fmt::Display
.
assert_snapshot!("reference value to snapshot");
Optionally a third argument can be given as an expression to be stringified as the debug expression. For more information on this, check out https://insta.rs/docs/snapshot-types/.