test_the_declaration_section_spelling_is_pinned

Tests › tests/test_kconfig.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. —
→

Then

  1. ✓ decl_mod.KNOWN_SECTIONS contains SECTION_KCONFIG
  2. ✓ decl_mod.SECTION_KCONFIG equals SECTION_KCONFIG

tests/test_kconfig.py:183 · its file's page

What it checks (2)

  1. assert SECTION_KCONFIG in decl_mod.KNOWN_SECTIONS not attributed
  2. assert decl_mod.SECTION_KCONFIG == SECTION_KCONFIG 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 (4)

requirementlinked byimplementers exercised
REQ-DDB-CONFIG-005catalogunknown
REQ-DDB-PIPE-007catalogunknown
REQ-DDB-PIPE-014catalogunknown
REQ-DDB-QUERY-006catalogunknown