keyhog-core 0.5.73

keyhog-core: shared data model and detector specifications for the KeyHog secret scanner
Documentation
1
2
3
4
5
6
7
8
9
10
//! Migrated from `src/credential.rs` inline tests.
use keyhog_core::Credential;
#[test]
fn equality_constant_time() {
    let a = Credential::from("aaa");
    let b = Credential::from("aaa");
    let c = Credential::from("aab");
    assert_eq!(a, b);
    assert_ne!(a, c);
}