gitbutler/crates/gitbutler-secret/tests/mod.rs

8 lines
176 B
Rust
Raw Normal View History

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