test_build_doxyfile_extra_exclude_applies_standalone¶
Tests › tests/test_build_docs_db.py
What this test is for
Why it exists
--extra-exclude must work WITHOUT --extra-input (the natural way to just trim scope). Regression: the loader early-returned when extra_input was None, silently dropping extra_exclude. It is now APPENDED to the repo's own EXCLUDE (kept, not cleared — no extra_input means no submodule to un-hide).
Verifies REQ-DDB-PIPE-001 REQ-DDB-PIPE-010
Given
f = tmp_path / "Doxyfile"f.write_text("EXCLUDE = vendor\n")
When
out = _build_doxyfile_content(f, extra_input=None, extra_exclude=["src/legacy"])plain = _build_doxyfile_content(f, extra_input=None, extra_exclude=None)
Then
- ✓ out contains "EXCLUDE += src/legacy"
- ✓ out contains "EXCLUDE = vendor"
- ✓ plain does not contain "EXCLUDE +="
tests/test_build_docs_db.py:302 · its file's page
What it checks (3)
assert "EXCLUDE += src/legacy" in outobserves_build_doxyfile_contentviaoutassert "EXCLUDE = vendor" in outobserves_build_doxyfile_contentviaoutassert "EXCLUDE +=" not in plainobserves_build_doxyfile_contentviaplain
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-PIPE-001 | catalog | unknown |
| REQ-DDB-PIPE-010 | 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