keyhog-sources 0.5.40

keyhog-sources: pluggable input backends for KeyHog (git, S3, Docker, Web)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Ghidra decompiled output must be capped before parsing.

#[cfg(feature = "binary")]
#[test]
fn binary_max_decompiled_cap_in_source() {
    let src = std::fs::read_to_string(concat!(env!("CARGO_MANIFEST_DIR"), "/src/binary/mod.rs"))
        .expect("binary/mod.rs");
    assert!(src.contains("MAX_DECOMPILED_SIZE"));
    assert!(src.contains("50 * 1024 * 1024"));
}

#[cfg(not(feature = "binary"))]
#[test]
fn binary_decompiled_cap_requires_binary_feature() {
    assert!(!cfg!(feature = "binary"));
}