keyhog 0.5.40

keyhog: detects leaked credentials in source trees, git history, and cloud storage
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! LR1-A8 replacement gate: `path_validation.rs` existing directory.

use keyhog::path_validation::validate_cli_path_arg;

#[test]
fn validate_cli_path_arg_accepts_existing_directory() {
    let dir = tempfile::tempdir().unwrap();
    let result = validate_cli_path_arg(dir.path(), "scan");
    assert!(
        result.is_ok(),
        "existing scan target must pass validation: {:?}",
        result.err()
    );
}