test_agreeing_sites_still_cite_the_shipped_config

Tests › tests/test_shipped_config_tiebreak.py

passed Passed in the packaged run.

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

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

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

Then

  1. ✓ gate.default_state equals "off"
  2. ✓ 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

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_params75. _macro_params → table_exists75table_exists

… 151 later steps

2 more

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

What it checks (2)

  1. assert gate.default_state == "off", "the state was already right and must stay right" observes _with_defaults via gate
  2. assert "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_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_agreeing_sites_still_cite_the_shipped_config→_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_agreeing_sites_still_cite_the_shipped_config · 2 checks_with_defaultstable_existsREQ-DDB-QUERY-003 · measured_with_defaults_in_default_buildREQ-DDB-QUERY-004 · measured_with_defaultsdecided_defaultREQ-DDB-QUERY-013 · measured
Also reaches 3 requirements

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