keyhog-core 0.5.50

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
//! Gate `source`: no inline #[cfg(test)] (Santh folder contract).

#[test]
fn source_no_inline_tests() {
    let path = concat!(env!("CARGO_MANIFEST_DIR"), "/src/source.rs");
    let src = std::fs::read_to_string(path).expect("source readable");
    assert!(
        !src.contains("#[cfg(test)]"),
        "source: move inline tests to crates/core/tests/"
    );
}