test_unresolvable_dispatch_via_leaves_the_handlers_unconnected¶
Tests › tests/test_dispatch.py
What this test is for
Why it exists
A `dispatch_via` that resolves to no unique indexed function fails CLOSED: the handlers stay unconnected rather than being attributed to some other function, because attributing a whole dispatched sub-graph to the wrong caller is the one error here that is indistinguishable from a real graph.
Given
(tmp_path / "src").mkdir()(tmp_path / "src" / "broker.cpp").write_text(_BROKER_SRC, encoding="utf-8")db = _make_db(tmp_path, _BROKER_FUNCTIONS)
When
manifest = load_dispatch_manifest( { "dispatch_tables": [ {"register_via": "register_dispatcher", "dispatch_via": "Absent::fan"} ] } )import_declared_dispatch_edges(db, tmp_path, manifest)
Then
- ✓ _declared_edges(db) equals []
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) · 7 of 400 steps
… 70 earlier steps
… 313 later steps
tests/test_dispatch.py:470 · its file's page
What it checks (1)
assert _declared_edges(db) == []observes_declared_edges
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
test_unresolvable_dispatch_via_leaves_the_handlers_unconnected→load_dispatch_manifest→import_declared_dispatch_edges→_declared_edgesWhat 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.
Also reaches 9 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-003 measured
- REQ-DDB-PIPE-011 measured
- REQ-DDB-PIPE-012 inferred
- REQ-DDB-QUERY-003 measured
- REQ-DDB-SCHEMA-003 measured
- REQ-DDB-SCHEMA-004 measured
- REQ-DDB-SCHEMA-007 measured
- REQ-DDB-SCHEMA-012 measured
- REQ-DDB-WIKI-054 inferred