Expand description
Upstream file test suite evaluation and live differential testing harness.
Provides automated discovery, loading, and evaluation of the canonical
file test suite (88 testfiles in
src/formats/detection/fixtures/magic/tests) against the ctoolbox
format detection engine, and provides live differential comparison against
the system file command when available.
Structs§
- Upstream
Suite Summary - Summary metrics for an upstream test suite evaluation run.
- Upstream
Test Case - An individual test case from the upstream
filetest suite. - Upstream
Test Result - Outcome of evaluating an upstream test case.
Enums§
- Parity
Category - Classification status of an upstream test case against detection parity.
Functions§
- classify_
upstream_ test - Classifies an upstream test result into a
ParityCategory. - evaluate_
upstream_ case - Evaluates a single upstream test case using the in-repo detection engine.
- load_
upstream_ test_ suite - Discovers and loads all test cases from the upstream tests directory.
- locate_
upstream_ tests_ dir - Resolves the filesystem path to the upstream magic tests directory.
- run_
upstream_ suite - Runs the complete upstream test suite and aggregates parity statistics.