test_defined_names_strips_quoting_and_values

Tests › tests/test_preprocessor.py

passed Passed in the packaged run.

What this test is for

Why it exists

gh#35 asks "is X defined" of a field built to render a Doxyfile, so its entries are `'"NAME"'` / `'"NAME=v"'` with the quotes in the string. A caller doing that stripping itself is a caller that can drift; this pins the one place it happens.

Verifies REQ-DDB-PIPE-014

Given

  1. cfg = PreprocessorConfig(macros=('"MBEDTLS_THREADING_PTHREAD"', '"MBEDTLS_X=0"'))
→

When

  1. —
→

Then

  1. ✓ cfg.defined_names equals frozenset({"MBEDTLS_THREADING_PTHREAD", "MBEDTLS_X"})

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

What it checks (1)

  1. assert cfg.defined_names == frozenset({"MBEDTLS_THREADING_PTHREAD", "MBEDTLS_X"}) not attributed

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)

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

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