test_rendered_lines_append_and_quote

Tests › tests/test_preprocessor.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. text = doxyfile_lines(PreprocessorConfig(macros=('"A"', '"B=1 + 2"')))
→

Then

  1. ✓ text does not contain "PREDEFINED = "
  2. ✓ text contains 'PREDEFINED += "A"'
  3. ✓ text contains 'PREDEFINED += "B=1 + 2"'
  4. ✓ text contains "ENABLE_PREPROCESSING = YES"

tests/test_preprocessor.py:442 · its file's page

What it checks (4)

  1. assert "PREDEFINED = " not in text, "assignment would discard the target's own list" observes doxyfile_lines via text
  2. assert 'PREDEFINED += "A"' in text observes doxyfile_lines via text
  3. assert 'PREDEFINED += "B=1 + 2"' in text observes doxyfile_lines via text
  4. assert "ENABLE_PREPROCESSING = YES" in text, "PREDEFINED has no effect without it" observes doxyfile_lines via text

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_rendered_lines_append_and_quote→doxyfile_lines

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.

test_rendered_lines_append_and_quote · 4 checksdoxyfile_linesREQ-DDB-CONFIG-004 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-014catalogunknown
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.