Function assert_eq_or_bless_if

Source
pub fn assert_eq_or_bless_if(
    actual: impl AsRef<str>,
    snapshot_path: impl AsRef<Path>,
    bless: bool,
)
Expand description

Same as assert_eq_or_bless but allows you to use custom logic to determine when to bless. Maybe you want to use a different environment variable, for example.