test_the_win32_kind_is_admitted_by_the_vocabulary¶
Tests › tests/test_thread_spawns.py
What this test is for
Why it exists
A pattern whose `kind` the CHECK rejects fails at INSERT — after a full parse — so the cost of getting this wrong is a build that dies late rather than a pattern that is ignored. `THREAD_KIND.validated` is what `load_thread_patterns` routes a declared kind through, and a value in `values` but missing from `rank` raises on a payload path rather than at import, which is why both now derive from one tuple.
Given
- —
When
- —
Then
- ✓ THREAD_KIND.values contains THREAD_KIND_WIN32
- ✓ THREAD_KIND.rank contains THREAD_KIND_WIN32
- ✓ THREAD_KIND.validated(THREAD_KIND_WIN32, owner="probe", field="kind") equals THREAD_KIND_WIN32
tests/test_thread_spawns.py:136 · its file's page
What it checks (3)
assert THREAD_KIND_WIN32 in THREAD_KIND.valuesnot attributedassert THREAD_KIND_WIN32 in THREAD_KIND.rank, ( "`values` and `rank` were two hand-maintained copies; a member in one and not the " "other is a KeyError waiting on a payload path" )not attributedassert ( THREAD_KIND.validated(THREAD_KIND_WIN32, owner="probe", field="kind") == THREAD_KIND_WIN32 )not attributed
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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-SCHEMA-012 measured