test_an_undeclared_configuration_decides_nothing¶
Tests › tests/test_preprocessor.py
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
cfg = PreprocessorConfig()
When
- —
Then
- ✓ cfg.declared is False
- ✓ cfg.defined_names equals frozenset()
tests/test_preprocessor.py:791 · its file's page
What it checks (2)
assert cfg.declared is Falsenot attributedassert 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)
| 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