refactor: modularize codebase and add 404 unit tests (#13)
All checks were successful
CI / Format (push) Successful in 4s
CI / Clippy (push) Successful in 4m19s
CI / Security Audit (push) Successful in 1m44s
CI / Detect Changes (push) Successful in 5s
CI / Tests (push) Successful in 5m15s
CI / Deploy Agent (push) Successful in 2s
CI / Deploy Dashboard (push) Successful in 2s
CI / Deploy Docs (push) Has been skipped
CI / Deploy MCP (push) Successful in 2s

This commit was merged in pull request #13.
This commit is contained in:
2026-03-13 08:03:45 +00:00
parent acc5b86aa4
commit 3bb690e5bb
89 changed files with 11884 additions and 6046 deletions

16
fuzz/Cargo.toml Normal file
View File

@@ -0,0 +1,16 @@
[package]
name = "compliance-fuzz"
version = "0.0.0"
publish = false
edition = "2021"
[dependencies]
libfuzzer-sys = "0.4"
compliance-core = { path = "../compliance-core" }
# Fuzz targets are defined below. Add new targets as [[bin]] entries.
[[bin]]
name = "fuzz_finding_dedup"
path = "fuzz_targets/fuzz_finding_dedup.rs"
doc = false

View File

@@ -0,0 +1,12 @@
#![no_main]
use libfuzzer_sys::fuzz_target;
// Example fuzz target stub for finding deduplication logic.
// Replace with actual dedup function calls once ready.
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
// TODO: Call dedup/fingerprint functions with fuzzed input
let _ = s.len();
}
});