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/safe_bin.rs` inline tests.
use keyhog_core::resolve_safe_bin;
#[test]
#[cfg(unix)]
fn resolves_sh_to_known_path() {
    // `/bin/sh` exists on every Unix variant we ship to.
    let resolved = resolve_safe_bin("sh").expect("sh should resolve");
    assert!(resolved.is_absolute());
    assert!(resolved.ends_with("sh"));
}