test_an_unknown_corpus_is_refused_by_name

Tests › tests/test_export.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. q.export_search(rich_db, "x", corpus="nope")
→

Then

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

  1. —
→

When

  1. tools.search("chime", corpus="proze")
→

Then

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

command-line usercommand-line usercommand-line usercommand-line userclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyclew/query/symbols.pyother filesother filesother filesother filestry (line 155)trymain209–210. query_main → _payload209_payload +1 more211. export_search → corpus_payload211corpus_payload▶ test enters212. corpus_payload → _symbol_corpus212_symbol_corpus213. _symbol_corpus → search_counted213search_counted

… 187 later steps

1 more

tests/test_export.py:178 · its file's page

Where the product reaches it

  • main → query_main → _payload → export_search (flow)

Call flow

test_an_unknown_corpus_is_refused_by_name→export_search

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_an_unknown_corpus_is_refused_by_nameexport_search… 5 calls …symbol_provenanceREQ-DDB-INDEX-004 · inferredexport_searchcorpus_payloadlock_rosterREQ-DDB-QUERY-001 · inferredexport_searchcorpus_payload_files_corpusdirectory_rollupREQ-DDB-QUERY-002 · inferredexport_searchcorpus_payloadkconfig_spacetable_existsREQ-DDB-QUERY-003 · inferredexport_search… 4 calls …_in_default_buildREQ-DDB-QUERY-004 · inferredexport_searchcorpus_payloadkconfig_spaceREQ-DDB-QUERY-006 · catalogexport_searchcorpus_payload_prose_corpusprose_emptinessREQ-DDB-QUERY-007 · inferredexport_searchcorpus_payloadlock_rosterREQ-DDB-QUERY-011 · inferredexport_search… 4 calls …decided_defaultREQ-DDB-QUERY-013 · inferredexport_searchREQ-DDB-QUERY-014 · measuredexport_searchcorpus_payloadlock_rosternestings_onREQ-DDB-SCHEMA-011 · inferred

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)

requirementlinked byimplementers exercised
REQ-DDB-MCP-001catalogunknown
REQ-DDB-QUERY-006catalog5 of 6: _gate_layer_state, _gate_symbol_names, gates_meaning, kconfig_space and 1 more
REQ-DDB-QUERY-008catalogunknown
REQ-DDB-QUERY-009catalogunknown
Also reaches 11 requirements

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