test_a_declared_but_missing_root_is_not_silently_replaced_by_convention

Tests › tests/test_kconfig.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. location = discover_kconfig(repo, {SECTION_KCONFIG: {KEY_ROOT: "conf/Kconfig"}})
→

Then

  1. ✓ location.path is None
  2. ✓ location.searched equals ("conf/Kconfig",)

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

What it checks (2)

  1. assert location.path is None observes discover_kconfig via location
  2. assert location.searched == ("conf/Kconfig",) observes discover_kconfig via location

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_a_declared_but_missing_root_is_not_silently_replaced_by_convention→discover_kconfig

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.

test_a_declared_but_missing_root_is_not_silently_replaced_by_convention · 2 checksdiscover_kconfigREQ-DDB-CONFIG-005 · measureddiscover_kconfig_declared_kconfigwithin_repoREQ-DDB-PIPE-014 · measured

Requirements it verifies (2)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-007catalogunknown
REQ-DDB-QUERY-006catalogunknown
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.