test_the_stored_tables_round_trip_through_the_query_layer¶
Tests › tests/test_kconfig.py
What this test is for
Why it exists
Drives the real pipeline entry point and reads back through R2, so the DDL, the inserts and the JOIN are all the shipped ones rather than copies.
Verifies REQ-DDB-PIPE-007
Given
db = tmp_path / "clew.db"_db_with_paths(db, ("src/motor.c",))
When
model = import_kconfig(db, repo, None)write_build_signature(db, kconfig=model.as_meta())space = kconfig_space(db)by_name = {sym.name: sym for sym in space.symbols}
Then
- ✓ space.found is True
- ✓ space.error equals ""
- ✓ by_name["WIDGET_MOTOR_BETA"].choice equals "Motor variant"
- ✓ by_name["WIDGET_LOG_LEVEL"].choice is None
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.
`main` (scripts/export_parity.py) · 12 of 203 steps
… 177 earlier steps
… 5 steps between
1 more
- clew — `main` (clew/cli.py) · 11 of 400 steps
tests/test_kconfig.py:243 · its file's page
What it checks (4)
assert space.found is Trueobserveskconfig_spaceviaspaceassert space.error == ""observeskconfig_spaceviaspaceassert by_name["WIDGET_MOTOR_BETA"].choice == "Motor variant", ( "the query layer must surface the group's HUMAN identity, not the synthetic key" )not attributedassert by_name["WIDGET_LOG_LEVEL"].choice is Nonenot attributed
Where the product reaches it
main→query_main→_payload→export_search→corpus_payload→kconfig_space(flow)
Call flow
test_the_stored_tables_round_trip_through_the_query_layer→_db_with_paths→import_kconfig→write_build_signature→kconfig_spaceWhat 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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-007 | catalog | unknown |
Also reaches 12 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-005 measured
- REQ-DDB-CONFIG-006 measured
- REQ-DDB-CONFIG-007 measured
- REQ-DDB-PIPE-005 measured
- REQ-DDB-PIPE-014 measured
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-004 inferred
- REQ-DDB-QUERY-006 measured
- REQ-DDB-QUERY-013 inferred
- REQ-DDB-SCHEMA-012 measured
- REQ-DDB-SCHEMA-013 measured