test_no_declaration_emits_no_doxyfile_lines¶
Tests › tests/test_preprocessor.py
What this test is for
Why it exists
The other half of inertness, and the one a build test cannot show: not merely that an undeclared target indexes the same rows, but that doxygen is fed the same BYTES. `ENABLE_PREPROCESSING` is checked by name because forcing it unconditionally would be an invisible policy change on every existing target.
Verifies REQ-DDB-CONFIG-004 REQ-DDB-PIPE-014
Given
root = _fixture_repo(tmp_path)
When
content = doxyfile_content_for(root / "Doxyfile")doxyfile_content_for(root / "Doxyfile", predefined="")
Then
- ✓ content does not contain "PREDEFINED"
- ✓ content does not contain "ENABLE_PREPROCESSING"
- ✓ content equals doxyfile_content_for(root / "Doxyfile", predefined="")
tests/test_preprocessor.py:426 · its file's page
What it checks (3)
assert "PREDEFINED" not in contentobservesdoxyfile_content_forviacontentassert "ENABLE_PREPROCESSING" not in contentobservesdoxyfile_content_forviacontentassert content == doxyfile_content_for(root / "Doxyfile", predefined="")observesdoxyfile_content_for
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
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 (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CONFIG-004 | catalog | unknown |
| REQ-DDB-PIPE-014 | catalog | unknown |
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-INDEX-001 measured
- REQ-DDB-PIPE-003 measured