test_a_declared_but_missing_root_is_not_silently_replaced_by_convention¶
Tests › tests/test_kconfig.py
What this test is for
Why it exists
A typo'd declaration must NOT fall through to the root file. Falling through would index a different configuration space than the one declared and report success — the quiet substitution the no-hardcoding mandate exists to prevent.
Verifies REQ-DDB-PIPE-007 REQ-DDB-QUERY-006
Given
- —
When
location = discover_kconfig(repo, {SECTION_KCONFIG: {KEY_ROOT: "conf/Kconfig"}})
Then
- ✓ location.path is None
- ✓ location.searched equals ("conf/Kconfig",)
tests/test_kconfig.py:174 · its file's page
What it checks (2)
assert location.path is Noneobservesdiscover_kconfigvialocationassert location.searched == ("conf/Kconfig",)observesdiscover_kconfigvialocation
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
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 (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-007 | catalog | unknown |
| REQ-DDB-QUERY-006 | catalog | unknown |
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-005 measured
- REQ-DDB-PIPE-014 measured