test_a_scalar_predefined_is_refused¶
Tests › tests/test_preprocessor.py
What this test is for
Why it exists
A string here would otherwise be iterated CHARACTER BY CHARACTER into a hundred one-letter macros — a build that succeeds while feeding doxygen nonsense, which is strictly worse than ignoring the key.
Verifies REQ-DDB-PIPE-014
Given
root = tmp_path / "repo"root.mkdir()
When
config = resolve_preprocessor(root, {SECTION_PREPROCESSOR: {"predefined": "FIXTURE_A"}})
Then
- ✓ config.macros equals ()
tests/test_preprocessor.py:647 · its file's page
What it checks (1)
assert config.macros == (), "a scalar was coerced into per-character macros"observesresolve_preprocessorviaconfig
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 (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-014 | catalog | 1 of 5: within_repo |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-004 measured