test_the_shipped_config_settles_a_disagreement

Tests › tests/test_shipped_config_tiebreak.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE REGRESSION, EXACTLY AS MEASURED: three heuristic rows, two saying on, the shipped one saying off. Before this the gate came back with no default and an answer picked the wrong branch.

Given

  1. conn = _conn( tmp_path, [ ("on", "configs/ext/tfm_mbedcrypto_config_profile_medium.h", "heuristic"), ("off", "include/mbedtls/mbedtls_config.h", "heuristic"), ("on", "tests/configs/user-config-malloc-0-null.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:96 · its file's page

What it checks (2)

  1. assert gate.default_state == "off", ( f"the shipped config says off and the gate reports {gate.default_state!r} — an agent " f"cannot tell which preprocessor branch is the default build" ) observes _with_defaults via gate
  2. assert "mbedtls_config.h" in gate.default_site, gate.default_site 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_the_shipped_config_settles_a_disagreement→_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_the_shipped_config_settles_a_disagreement · 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.