Skip to main content

store_mismatch

Function store_mismatch 

Source
fn store_mismatch(name: &str, rgba: &[u8], width: u32, height: u32)
Available on crate feature snapshot and non-WebAssembly only.
Expand description

Keep a frame that did not match, so a failing run leaves it behind.

Natively, where a test owns its own filesystem: the snapshot’s name is a path relative to the snapshot directory, so it keeps each frame under the test it belongs to rather than colliding on a file name.