test_a_scalar_predefined_is_refused

Tests › tests/test_preprocessor.py

passed Passed in the packaged run.

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

  1. root = tmp_path / "repo"
  2. root.mkdir()
→

When

  1. config = resolve_preprocessor(root, {SECTION_PREPROCESSOR: {"predefined": "FIXTURE_A"}})
→

Then

  1. ✓ config.macros equals ()

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

What it checks (1)

  1. assert config.macros == (), "a scalar was coerced into per-character macros" observes resolve_preprocessor via config

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_scalar_predefined_is_refused→resolve_preprocessor

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_a_scalar_predefined_is_refused · 1 checksresolve_preprocessorREQ-DDB-CONFIG-004 · measuredresolve_preprocessor_resolve_config_header_named_config_headerwithin_repoREQ-DDB-PIPE-014 · catalog

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-014catalog1 of 5: within_repo
Also reaches 1 requirement

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