test_declared_macro_names_drops_the_value_half

Tests › tests/test_kconfig.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. declared_macro_names(["A", "B=1", " C = 2 ", ""])
  2. declared_macro_names(['"PROBE_DECLARED"', '"WITH_VALUE=1"'])
→

Then

  1. ✓ declared_macro_names(["A", "B=1", " C = 2 ", ""]) equals frozenset({"A", "B", "C"})
  2. ✓ 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)

  1. assert declared_macro_names(["A", "B=1", " C = 2 ", ""]) == frozenset({"A", "B", "C"}) observes declared_macro_names
  2. assert 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" observes declared_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_names

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_declared_macro_names_drops_the_value_half · 2 checksdeclared_macro_namesbare_macro_namesREQ-DDB-CONFIG-004 · measured

Requirements it verifies (4)

requirementlinked byimplementers exercised
REQ-DDB-CONFIG-005catalogunknown
REQ-DDB-PIPE-007catalogunknown
REQ-DDB-PIPE-014catalogunknown
REQ-DDB-QUERY-006catalogunknown
Also reaches 1 requirement

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