test_a_name_that_is_two_subjects_reports_both¶
Tests › tests/test_subject_surface.py
What this test is for
Why it exists
AN ARBITRARY PICK REPORTED AS THE ANSWER is this repo's own recorded failure, one level up: three unrelated `_classify` functions collapsed into one node and the dossier listed the union of their neighbours at `confidence: exact`. The classifier refuses to repeat it — a name that is several things says so.
Given
- —
When
kinds = q.resolve_subject(rich_db, DM_MUTEX)
Then
- ✓ set(kinds) is at least {"lock", "variable"}
- ✓ kinds[0] equals "lock"
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.
Look up one name: everything the index holds about it · 8 of 226 steps
… 17 earlier steps
… 23 steps between
… 4 steps between
… 86 steps between
… 72 later steps
3 more
- Build this wiki from the index · 4 of 400 steps
- clew — `main` (clew/cli.py) · 1 of 400 steps
- `main` (scripts/export_parity.py) · 1 of 203 steps
tests/test_subject_surface.py:108 · its file's page
What it checks (2)
assert set(kinds) >= {"lock", "variable"}, kindsobservesresolve_subjectviakindsassert kinds[0] == "lock"observesresolve_subjectviakinds
Where the product reaches it
dossier→resolve_subject(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.
Also reaches 5 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-004 measured
- REQ-DDB-QUERY-010 measured
- REQ-DDB-QUERY-012 measured