test_the_declaration_section_spelling_is_pinned¶
Tests › tests/test_kconfig.py
What this test is for
Why it exists
`kconfig.py` does not import `declaration.py` and is not imported by it, so the section name is spelled twice. This pins them together, exactly as `test_declaration.py` does for `index_scope` and `preprocessor`. A drift here means a repo's declaration parses into a mapping nothing reads while the build reports it was honoured.
Verifies REQ-DDB-CONFIG-005 REQ-DDB-PIPE-007 REQ-DDB-PIPE-014 REQ-DDB-QUERY-006
Given
- —
When
- —
Then
- ✓ decl_mod.KNOWN_SECTIONS contains SECTION_KCONFIG
- ✓ decl_mod.SECTION_KCONFIG equals SECTION_KCONFIG
tests/test_kconfig.py:183 · its file's page
What it checks (2)
assert SECTION_KCONFIG in decl_mod.KNOWN_SECTIONSnot attributedassert decl_mod.SECTION_KCONFIG == SECTION_KCONFIGnot 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 (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 |