[][src]Macro insta::assert_debug_snapshot

macro_rules! assert_debug_snapshot {
    ($value:expr, @$snapshot:literal) => { ... };
    ($name:expr, $value:expr) => { ... };
    ($value:expr) => { ... };
}

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.

Additionally the name is optional. For more information see unnamed snapshots