test_rendered_lines_append_and_quote¶
Tests › tests/test_preprocessor.py
What this test is for
Why it exists
Pins the two properties the build tests depend on but cannot isolate. `+=` is the reason a target's own PREDEFINED survives; quoting is the reason a value containing a space stays ONE macro rather than becoming three entries, two of them nonsense.
Verifies REQ-DDB-PIPE-014
Given
- —
When
text = doxyfile_lines(PreprocessorConfig(macros=('"A"', '"B=1 + 2"')))
Then
- ✓ text does not contain "PREDEFINED = "
- ✓ text contains 'PREDEFINED += "A"'
- ✓ text contains 'PREDEFINED += "B=1 + 2"'
- ✓ text contains "ENABLE_PREPROCESSING = YES"
tests/test_preprocessor.py:442 · its file's page
What it checks (4)
assert "PREDEFINED = " not in text, "assignment would discard the target's own list"observesdoxyfile_linesviatextassert 'PREDEFINED += "A"' in textobservesdoxyfile_linesviatextassert 'PREDEFINED += "B=1 + 2"' in textobservesdoxyfile_linesviatextassert "ENABLE_PREPROCESSING = YES" in text, "PREDEFINED has no effect without it"observesdoxyfile_linesviatext
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 | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-004 measured