test_resolving_a_target_registers_nothing¶
Tests › tests/test_mcp_server.py
What this test is for
Why it exists
@req REQ-DDB-MCP-001
Verifies REQ-DDB-MCP-001 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
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.
Build, refresh and check the index · 38 of 153 steps
… 14 earlier steps
… 84 later steps
5 more
- thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 24 of 142 steps
- `main` (scripts/stage_probe.py) · 23 of 37 steps
- clew-mcp — `main` (clew/mcp_server/server.py) · 9 of 17 steps
- clew — `main` (clew/cli.py) · 1 of 400 steps
- `main` (scripts/incremental_probe.py) · 1 of 3 steps
tests/test_mcp_server.py:3410 · its file's page
What it checks (3)
assert active is not None and active.repo_path == str(repo), "it must still become active"assert reg.targets() == [], (f"resolving a target registered it: {[t.repo_path for t in reg.targets()]}. Launching the " f"server somewhere is not a statement that the directory should be indexed." )assert not Path(active.db_path).parent.exists(), ("no state directory may be created for a target nothing has built" )
Where the product reaches it
main→build_server(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.
Requirements it verifies (4)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-MCP-001 | tag | 11 of 56: adopt, build_server, db_status, derived_names and 7 more |
| REQ-DDB-QUERY-006 | catalog | unknown |
| REQ-DDB-QUERY-008 | catalog | unknown |
| REQ-DDB-QUERY-009 | catalog | unknown |
Also reaches 6 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-006 measured
- REQ-DDB-CONFIG-007 measured
- REQ-DDB-MCP-003 measured
- REQ-DDB-MCP-004 measured
- REQ-DDB-WIKI-034 measured
- REQ-DDB-WIKI-054 measured