Function re_viewer::external::egui_kittest::image_snapshot
pub fn image_snapshot(current: &ImageBuffer<Rgba<u8>, Vec<u8>>, name: &str)
Expand description
Image snapshot test.
The snapshot will be saved under tests/snapshots/{name}.png
.
The new image from the last test run will be saved under tests/snapshots/{name}.new.png
.
If the new image didn’t match the snapshot, a diff image will be saved under tests/snapshots/{name}.diff.png
.
§Panics
Panics if the image does not match the snapshot or if there was an error reading or writing the snapshot.