1 2 3 4 5 6 7 8 9
//! Migrated from `src/credential.rs` inline tests. use keyhog_core::Credential; #[test] fn display_redacts_bytes() { let c = Credential::from("ghp_abcdef1234567890"); let s = format!("{c}"); assert!(s.contains("redacted")); assert!(!s.contains("ghp_")); }