test_a_config_symbols_own_gates_carry_the_resolved_default¶
Tests › tests/test_config_subject_defaults.py
What this test is for
Why it exists
RED BEFORE THE FIX: `_gates` returns `KconfigGate` rows straight from SQL, so `default_state` holds its dataclass default and every site reads as "no default known" against an index that knows it.
Given
- —
When
space = q.kconfig_space(gated, MACRO)states = {gate.default_state for gate in space.gates}all("mbedtls_config.h" in gate.default_site for gate in space.gates)
Then
- ✓ len(space.gates) equals 2
- ✓ states equals {"off"}
- ✓ all("mbedtls_config.h" in gate.default_site for gate in space.gates) holds
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
`main` (scripts/export_parity.py) · 21 of 203 steps
… 13 earlier steps
… 159 steps between
2 more
- clew — `main` (clew/cli.py) · 19 of 400 steps
- Look up one name: everything the index holds about it · 8 of 226 steps
tests/test_config_subject_defaults.py:98 · its file's page
What it checks (3)
assert len(space.gates) == 2, "both preprocessor arms must survive"observeskconfig_spaceviaspaceassert states == {"off"}, ( f"the shipped config says off; the config subject reports {states} — a reader asking " f"about the symbol cannot tell which arm the default build takes" )not attributedassert all("mbedtls_config.h" in gate.default_site for gate in space.gates), ( "the site must name the file that was believed, so a reader can disagree with the choice" )observesall
Where the product reaches it
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.
Also reaches 6 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-004 measured
- REQ-DDB-QUERY-006 measured
- REQ-DDB-QUERY-013 measured
- REQ-DDB-WIKI-054 inferred