test_build_doxyfile_appends_forced_flags¶
Tests › tests/test_build_docs_db.py
What this test is for
Given
f = tmp_path / "Doxyfile"f.write_text("PROJECT_NAME = test\n")
When
out = _build_doxyfile_content(f, extra_input=None, extra_exclude=None)
Then
- ✓ out contains "GENERATE_SQLITE3 = YES"
- ✓ out does not contain "GENERATE_XML = YES"
- ✓ out contains "EXTRACT_ALL = YES"
- ✓ out contains "EXTRACT_STATIC = YES"
- ✓ out contains "RECURSIVE = YES"
- ✓ out contains "PROJECT_NAME = test"
tests/test_build_docs_db.py:236 · its file's page
What it checks (6)
assert "GENERATE_SQLITE3 = YES" in outobserves_build_doxyfile_contentviaoutassert "GENERATE_XML = YES" not in outobserves_build_doxyfile_contentviaoutassert "EXTRACT_ALL = YES" in outobserves_build_doxyfile_contentviaoutassert "EXTRACT_STATIC = YES" in outobserves_build_doxyfile_contentviaoutassert "RECURSIVE = YES" in outobserves_build_doxyfile_contentviaoutassert "PROJECT_NAME = test" in outobserves_build_doxyfile_contentviaout
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