test_binary_named_as_source_is_detected¶
Tests › tests/test_toolchain.py
What this test is for
Given
blob = tmp_path / "blob.c"blob.write_bytes(ZIP)
When
skipped = binary_file(blob)binary_file(_write(tmp_path, "ok.c"))
Then
- ✓ skipped is not None
- ✓ skipped.binary_kind equals "archive"
- ✓ binary_file(_write(tmp_path, "ok.c")) is None
tests/test_toolchain.py:104 · its file's page
What it checks (2)
assert skipped is not None and skipped.binary_kind == "archive"observesbinary_fileviaskippedassert binary_file(_write(tmp_path, "ok.c")) is Noneobservesbinary_file
Where the product reaches it
main→_run→run_precommit→_validate_files→validate_file→gate_exclusion→binary_file(flow)
Call flow
What it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CONFIG-009 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-011 measured