gix-imara-diff/fuzz/README.md
This directory contains fuzz tests for imara-diff using cargo-fuzz.
rustup install nightlycargo install cargo-fuzz# Run for a specific time (e.g., 60 seconds)
cargo +nightly fuzz run comprehensive_diff -- -max_total_time=60
# Run with a specific number of runs
cargo +nightly fuzz run comprehensive_diff -- -runs=1000000
for target in comprehensive_diff diff_compute_with postprocess_heuristics unified_diff_printer; do
cargo +nightly fuzz run --release $target -- -max_total_time=60
done
cargo +nightly fuzz coverage comprehensive_diff
Fuzz tests are automatically run in CI for 3 minutes total (45 seconds per target × 4 targets) to ensure no regressions in robustness.
fuzz_targets/ directory[[bin]] entry in Cargo.toml