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
11
12
//! Migrated from `src/auto_fix.rs` inline tests.
#[test]
fn empty_service_does_not_panic() {
    // "" → trim_matches('_') yields "" → "" + "_KEY" = "_KEY"
    assert_eq!(
        keyhog_core::testing::CoreTestApi::auto_fix_env_var_name_for_service(
            &keyhog_core::testing::TestApi,
            ""
        ),
        "_KEY"
    );
}