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
15
16
//! E2E: scanning an empty directory exits 0.

use crate::e2e::support::{binary, scan_path};
use tempfile::TempDir;

#[test]
fn scan_empty_dir_exit_zero() {
    let dir = TempDir::new().expect("tempdir");
    let output = scan_path(dir.path(), &[]);
    assert_eq!(
        output.status.code(),
        Some(0),
        "empty dir must exit 0; stderr={}",
        String::from_utf8_lossy(&output.stderr)
    );
}