gitbutler/crates/gitbutler-secret/tests/mod.rs
2024-07-09 12:11:12 +02:00

8 lines
176 B
Rust

use gitbutler_secret::Sensitive;
#[test]
fn sensitive_does_not_debug_print_itself() {
let s = Sensitive("password");
assert_eq!(format!("{s:?}"), "\"<redacted>\"");
}