keyhog-scanner 0.5.40

keyhog-scanner: high-performance SIMD-accelerated secret detection engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! KH-GAP-014: compiler.rs still hosts inline alternation tests.

use std::path::PathBuf;

#[test]
fn compiler_inline_tests_in_src() {
    let path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("src/compiler.rs");
    let src = std::fs::read_to_string(&path).expect("read compiler.rs");
    assert!(
        !src.contains("#[cfg(test)]"),
        "compiler alternation rewrite tests must migrate to tests/unit/"
    );
}