test_declared_macro_names_drops_the_value_half¶
Tests › tests/test_kconfig.py
What this test is for
Why it exists
PREDEFINED entries carry an optional `=value`, and comparing raw strings would classify every valued macro as undeclared — silently, on the exact repos that bother to declare one.
Verifies REQ-DDB-CONFIG-005 REQ-DDB-PIPE-007 REQ-DDB-PIPE-014 REQ-DDB-QUERY-006
Given
- —
When
declared_macro_names(["A", "B=1", " C = 2 ", ""])declared_macro_names(['"PROBE_DECLARED"', '"WITH_VALUE=1"'])
Then
- ✓ declared_macro_names(["A", "B=1", " C = 2 ", ""]) equals frozenset({"A", "B", "C"})
- ✓ declared_macro_names(['"PROBE_DECLARED"', '"WITH_VALUE=1"']) equals frozenset( {"PROBE_DECLARED", "WITH_VALUE"} )
tests/test_kconfig.py:691 · its file's page
What it checks (2)
assert declared_macro_names(["A", "B=1", " C = 2 ", ""]) == frozenset({"A", "B", "C"})observesdeclared_macro_namesassert declared_macro_names(['"PROBE_DECLARED"', '"WITH_VALUE=1"']) == frozenset( {"PROBE_DECLARED", "WITH_VALUE"} ), "the RENDERED doxygen shape is what the pipeline passes; the bare shape never reaches it"observesdeclared_macro_names
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_declared_macro_names_drops_the_value_half→declared_macro_namesWhat 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 (4)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CONFIG-005 | catalog | unknown |
| REQ-DDB-PIPE-007 | catalog | unknown |
| REQ-DDB-PIPE-014 | catalog | unknown |
| REQ-DDB-QUERY-006 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-004 measured