test_a_disagreement_with_no_shipped_site_is_still_dropped

Tests › tests/test_shipped_config_tiebreak.py

passed Passed in the packaged run.

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

  1. conn = _conn( tmp_path, [ ("on", "configs/profile_a.h", "heuristic"), ("off", "configs/profile_b.h", "heuristic"), ], )
→

When

  1. gate = _with_defaults(conn, (_gate(),))[0]
→

Then

  1. ✓ 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

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesloop (line 660)loopdossier67. _gate_columns → has_columns67has_columns68. gates_covering → _with_defaults68_with_defaults69. _with_defaults → table_exists69table_exists▶ test enters70. _with_defaults → _defaults_for_macros70_defaults_for_macros71. _with_defaults → decided_default71decided_default72. decided_default → is_shipped_config72is_shipped_config73. _with_defaults → _in_default_build73_in_default_build74. _macro_def → _macro_params74_macro_params

… 152 later steps

2 more

tests/test_shipped_config_tiebreak.py:156 · its file's page

What it checks (1)

  1. assert not gate.default_state, ( f"an unresolvable disagreement invented a default: {gate.default_state!r}" ) observes _with_defaults via gate

Where the product reaches it

  • main → query_main → _payload → export_search → corpus_payload → kconfig_space → _gates → _with_defaults (flow)

Call flow

test_a_disagreement_with_no_shipped_site_is_still_dropped→_conn→_with_defaults→_gate

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_disagreement_with_no_shipped_site_is_still_dropped · 1 checks_with_defaultstable_existsREQ-DDB-QUERY-003 · measured_with_defaults_in_default_buildREQ-DDB-QUERY-004 · inferred_with_defaultsdecided_defaultREQ-DDB-QUERY-013 · measured
Also reaches 3 requirements

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