test_a_disagreement_with_no_shipped_site_is_still_dropped¶
Tests › tests/test_shipped_config_tiebreak.py
What this test is for
Why it exists
THE ORIGINAL RULE SURVIVES WHERE IT WAS RIGHT. When every site really is an equal guess, inventing one is worse than silence — the gate must still come back unstated rather than picking arbitrarily.
Given
conn = _conn( tmp_path, [ ("on", "configs/profile_a.h", "heuristic"), ("off", "configs/profile_b.h", "heuristic"), ], )
When
gate = _with_defaults(conn, (_gate(),))[0]
Then
- ✓ gate.default_state is false
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 · 4 of 226 steps
… 66 earlier steps
… 152 later steps
2 more
- clew — `main` (clew/cli.py) · 4 of 400 steps
- `main` (scripts/export_parity.py) · 4 of 203 steps
tests/test_shipped_config_tiebreak.py:156 · its file's page
What it checks (1)
assert not gate.default_state, ( f"an unresolvable disagreement invented a default: {gate.default_state!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 inferred
- REQ-DDB-QUERY-013 measured