test_an_undeclared_configuration_decides_nothing

Tests › tests/test_preprocessor.py

passed Passed in the packaged run.

What this test is for

Why it exists

A target that declares no configuration must not have its conditional bindings read as dead — that would empty the layer. `defined(X)` against an empty set is legitimately False for the DOXYGEN parse, but for BRANCH SELECTION the honest verdict is that we were told nothing, which the emitter reads off `declared` rather than off this function.

Verifies REQ-DDB-PIPE-014

Given

  1. cfg = PreprocessorConfig()
→

When

  1. —
→

Then

  1. ✓ cfg.declared is False
  2. ✓ cfg.defined_names equals frozenset()

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

What it checks (2)

  1. assert cfg.declared is False not attributed
  2. assert cfg.defined_names == frozenset() 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.