test_a_misspelled_entry_field_refuses_the_build¶
Tests › tests/test_dispatch.py
What this test is for
Why it exists
One level down, and worse than "declared nothing": `key_arg_idx` silently defaults the key to argument 0, so a typo does not produce NO dataflow, it produces the WRONG dataflow — a specific, real claim invented from a slip.
Given
- —
When
load_dispatch_manifest({"shared_key_wrappers": [{"pattern": "w", "key_arg_idx": 2}]})load_dispatch_manifest({"interfaces": [{"interface": "I", "bind": "C"}]})load_dispatch_manifest( {"dispatch_tables": [{"register_via": "r", "dispatch_via": "d", "handler": 0}]} )
Then
- ✓ raises DeclarationError
- ✓ str(exc.value) contains "'key_arg_idx'"
- ✓ str(exc.value) contains "key_arg_index"
- ✓ raises DeclarationError
- ✓ raises DeclarationError
tests/test_dispatch.py:764 · its file's page
What it checks (2)
assert "'key_arg_idx'" in str(exc.value)not attributedassert "key_arg_index" in str(exc.value)not attributed
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
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.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-SCHEMA-004 measured
- REQ-DDB-SCHEMA-012 measured