Module file_upstream_suite

Module file_upstream_suite 

Source
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§

UpstreamSuiteSummary
Summary metrics for an upstream test suite evaluation run.
UpstreamTestCase
An individual test case from the upstream file test suite.
UpstreamTestResult
Outcome of evaluating an upstream test case.

Enums§

ParityCategory
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.