Skip to main content

Crate test_utils_insta

Crate test_utils_insta 

Source
Expand description

Helpers for redacting values in insta snapshots.

Each helper validates the value it replaces, failing the test when the snapshot content does not match the expected value.

Functionsยง

create_insta_redaction
Create an insta redaction that replaces the string form of value with [replacement].
create_insta_redaction_u128
Create an insta redaction for unsigned integer content, replacing value with [replacement].