test_an_unknown_corpus_is_refused_by_name¶
Tests › tests/test_export.py
What this test is for
Why it exists
An unknown corpus raises, naming the known ones.
Verifies REQ-DDB-MCP-001 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
Given
- —
When
q.export_search(rich_db, "x", corpus="nope")
Then
- ✓ raises ValueError
What this test is for
Why it exists
FAIL CLOSED, and name the allowed set. A misspelled corpus that fell through to the default would answer a markdown question out of the symbol table and look like a definitive empty result — the exact silent-degradation shape this repo keeps recording. Same reasoning as the declaration loader's entry-level rejection.
Verifies REQ-DDB-MCP-001 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
Given
- —
When
tools.search("chime", corpus="proze")
Then
- ✓ raises ValueError
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.
clew — `main` (clew/cli.py) · 1 of 400 steps
… 208 earlier steps
… 187 later steps
1 more
- `main` (scripts/export_parity.py) · 1 of 203 steps
tests/test_export.py:178 · its file's page
Where the product reaches it
main→query_main→_payload→export_search(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.
tests/test_mcp_server.py:1990 · its file's page
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.
Requirements it verifies (4)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-MCP-001 | catalog | unknown |
| REQ-DDB-QUERY-006 | catalog | 5 of 6: _gate_layer_state, _gate_symbol_names, gates_meaning, kconfig_space and 1 more |
| REQ-DDB-QUERY-008 | catalog | unknown |
| REQ-DDB-QUERY-009 | catalog | unknown |
Also reaches 11 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-INDEX-004 inferred
- REQ-DDB-MCP-003 measured
- REQ-DDB-QUERY-001 inferred
- REQ-DDB-QUERY-002 inferred
- REQ-DDB-QUERY-003 inferred
- REQ-DDB-QUERY-004 inferred
- REQ-DDB-QUERY-007 inferred
- REQ-DDB-QUERY-011 inferred
- REQ-DDB-QUERY-013 inferred
- REQ-DDB-QUERY-014 measured
- REQ-DDB-SCHEMA-011 inferred