Macro insta::assert_debug_snapshot
source · macro_rules! assert_debug_snapshot { ($value:expr, @$snapshot:literal) => { ... }; ($name:expr, $value:expr) => { ... }; ($value:expr) => { ... }; }
Expand description
Asserts a Debug snapshot.
The value needs to implement the fmt::Debug trait. This is useful for
simple values that do not implement the Serialize trait but does not
permit redactions.
Debug is called with "{:#?}", which means this uses pretty-print.
The snapshot name is optional.