from __future__ import annotations from tools.check_6400_closures import build_receipt def test_production_and_analysis_closures_are_complete_and_separate() -> None: receipt = build_receipt() production = receipt["production_source_closure"]["files"] analysis = receipt["analysis_replay_closure"]["files"] assert "src/top/prod2u_6400_rs232_only_top.v" in production assert "tools/target_registry.py" in analysis assert "tools/package_target.py" in analysis assert "tools/target_registry.py" not in production assert "tests/cocotb/test_6400_pi_differential.py" not in production assert all(len(digest) == 64 for digest in [*production.values(), *analysis.values()])