test_a_declared_predefined_list_reaches_doxygen¶
Tests › tests/test_preprocessor.py
What this test is for
Why it exists
THE test for gh#17 part 1, and it fails before the change with `feature_entry` absent — nothing in the pipeline set `PREDEFINED`, so every occurrence of the word was prose in a warning.
Given
declared = _fixture_repo( tmp_path / "yes", declaration="preprocessor:\n predefined:\n - FIXTURE_FEATURE_C\n", )bare = _fixture_repo(tmp_path / "no")
2 more
with_macro = _doxygen_functions(_build(declared, tmp_path / "yes.db"))without = _doxygen_functions(_build(bare, tmp_path / "no.db"))
When
- —
Then
- ✓ with_macro contains "always_present"
- ✓ without contains "always_present"
- ✓ with_macro contains "feature_entry"
- ✓ without does not contain "feature_entry"
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
clew — `main` (clew/cli.py) · 36 of 400 steps
… 10 earlier steps
… 18 steps between
… 4 steps between
… 23 steps between
… 57 steps between
… 27 steps between
… 187 steps between
8 more
- thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 31 of 142 steps
- Build, refresh and check the index · 21 of 153 steps
- Build this wiki from the index · 10 of 400 steps
- `main` (clew/guard/main.py) · 3 of 357 steps
- Look up one name: everything the index holds about it · 1 of 226 steps
- clew-mcp — `main` (clew/mcp_server/server.py) · 1 of 17 steps
- `main` (scripts/export_parity.py) · 1 of 203 steps
- `main` (scripts/incremental_probe.py) · 1 of 3 steps
tests/test_preprocessor.py:224 · its file's page
What it checks (4)
assert "always_present" in with_macro, "the control function must index either way"observes_doxygen_functionsviawith_macroassert "always_present" in without, "the control function must index either way"observes_doxygen_functionsviawithoutassert "feature_entry" in with_macro, "the declared macro did not reach doxygen"observes_doxygen_functionsviawith_macroassert "feature_entry" not in without, ( "the guarded function indexed with NO macro declared — this fixture cannot " "prove anything about PREDEFINED" )observes_doxygen_functionsviawithout
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
test_a_declared_predefined_list_reaches_doxygen→_fixture_repo→_doxygen_functions→_buildWhat 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.
Also reaches 51 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CLI-001 measured
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-CONFIG-004 measured
- REQ-DDB-CONFIG-005 measured
- REQ-DDB-CONFIG-006 measured
- REQ-DDB-CONFIG-007 measured
- REQ-DDB-CONFIG-009 measured
- REQ-DDB-GUARD-012 measured
- REQ-DDB-INDEX-001 measured
- REQ-DDB-INDEX-002 measured
- REQ-DDB-INDEX-003 measured
- REQ-DDB-INDEX-004 measured
- REQ-DDB-INDEX-005 measured
- REQ-DDB-INDEX-006 measured
- REQ-DDB-INDEX-007 measured
- REQ-DDB-INDEX-008 measured
- REQ-DDB-INDEX-009 measured
- REQ-DDB-INDEX-010 measured
- REQ-DDB-INDEX-011 measured
- REQ-DDB-MCP-001 measured
- REQ-DDB-MCP-004 measured
- REQ-DDB-PIPE-001 measured
- REQ-DDB-PIPE-003 measured
- REQ-DDB-PIPE-004 measured
- REQ-DDB-PIPE-005 measured
- REQ-DDB-PIPE-006 measured
- REQ-DDB-PIPE-007 measured
- REQ-DDB-PIPE-008 measured
- REQ-DDB-PIPE-009 measured
- REQ-DDB-PIPE-010 measured
- REQ-DDB-PIPE-011 measured
- REQ-DDB-PIPE-012 measured
- REQ-DDB-PIPE-013 measured
- REQ-DDB-PIPE-014 measured
- REQ-DDB-PIPE-015 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-011 measured
- REQ-DDB-QUERY-013 measured
- REQ-DDB-SCHEMA-001 measured
- REQ-DDB-SCHEMA-002 measured
- REQ-DDB-SCHEMA-003 measured
- REQ-DDB-SCHEMA-004 measured
- REQ-DDB-SCHEMA-005 measured
- REQ-DDB-SCHEMA-006 measured
- REQ-DDB-SCHEMA-007 measured
- REQ-DDB-SCHEMA-009 measured
- REQ-DDB-SCHEMA-011 measured
- REQ-DDB-SCHEMA-012 measured
- REQ-DDB-SCHEMA-013 measured
- REQ-DDB-SCHEMA-014 measured
- REQ-DDB-SCHEMA-015 measured