test_a_wrapped_entry_argument_still_resolves¶
Tests › tests/test_thread_spawns.py
What this test is for
Why it exists
gh#45. `_named_entry` unwrapped exactly one node type — `pointer_expression` — so `(pthread_fn)ThreadMainHandler` reached `_tail_identifier` as a `cast_expression`, whose handler table has no entry for it, and the site was dropped fail-closed. The primitive was recognised the whole time; only the argument parse failed, so no `thread_patterns` declaration could recover it.
Given
- —
When
patterns = patterns_by_name(load_thread_patterns(None))tree, src = _parse_c(_BARE_AND_WRAPPED)sites = _walk_spawn_sites(tree, src, patterns)entries = sorted(site[1] for site in sites)
Then
- ✓ entries equals ["ThreadMainHandler"] * 3
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
… 80 earlier steps
… 315 later steps
tests/test_thread_spawns.py:566 · its file's page
What it checks (1)
assert entries == ["ThreadMainHandler"] * 3, ( f"a cast or parenthesised entry argument must resolve like a bare one, got {entries}" )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
test_a_wrapped_entry_argument_still_resolves→patterns_by_name→load_thread_patterns→_parse_c→_walk_spawn_sitesWhat 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 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-003 measured
- REQ-DDB-SCHEMA-001 measured
- REQ-DDB-SCHEMA-012 inferred