test_empty_and_unreadable_files_are_not_skipped¶
Tests › tests/test_toolchain.py
What this test is for
Given
empty = tmp_path / "__init__.py"empty.write_text("")
When
binary_file(empty)binary_file(tmp_path / "missing.c")
Then
- ✓ binary_file(empty) is None
- ✓ binary_file(tmp_path / "missing.c") is None
tests/test_toolchain.py:112 · its file's page
What it checks (2)
assert binary_file(empty) is None, "an empty file is legitimate source"observesbinary_fileassert binary_file(tmp_path / "missing.c") is None, "left to the reader that opens it"observesbinary_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