test_agreeing_sites_still_cite_the_shipped_config¶
Tests › tests/test_shipped_config_tiebreak.py
What this test is for
Why it exists
THE OTHER HALF OF THE SAME EVIDENCE PROBLEM, found by replaying the frozen mbedtls index. `dossier("MBEDTLS_THREADING_C")` now reports `default_state: 'off'` correctly — all three `config_defaults` rows agree — and cites `default_site: 'configs/config-symmetric-only.h:73'`.
Given
conn = _conn( tmp_path, [ ("off", "configs/config-symmetric-only.h", "heuristic"), ("off", "include/mbedtls/mbedtls_config.h", "heuristic"), ("off", "tests/configs/config_test_driver.h", "heuristic"), ], )
When
gate = _with_defaults(conn, (_gate(),))[0]
Then
- ✓ gate.default_state equals "off"
- ✓ gate.default_site contains "mbedtls_config.h"
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.
Look up one name: everything the index holds about it · 5 of 226 steps
… 66 earlier steps
… 151 later steps
2 more
- `main` (scripts/export_parity.py) · 5 of 203 steps
- clew — `main` (clew/cli.py) · 4 of 400 steps
tests/test_shipped_config_tiebreak.py:185 · its file's page
What it checks (2)
assert gate.default_state == "off", "the state was already right and must stay right"observes_with_defaultsviagateassert "mbedtls_config.h" in gate.default_site, ( f"with every site agreeing, the citation must still be the repository's own shipped " f"header rather than whichever path sorted first: {gate.default_site!r}" )observes_with_defaultsviagate
Where the product reaches it
main→query_main→_payload→export_search→corpus_payload→kconfig_space→_gates→_with_defaults(flow)
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 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-004 measured
- REQ-DDB-QUERY-013 measured