test_default_spawn_patterns_cover_primitives¶
Tests › tests/test_r1_richness.py
What this test is for
Why it exists
The test says nothing about why.
Verifies REQ-DDB-SCHEMA-001 REQ-DDB-SCHEMA-002 REQ-DDB-SCHEMA-003 REQ-DDB-SCHEMA-004 REQ-DDB-SCHEMA-007
Given
names = {p.name for p in DEFAULT_SPAWN_PATTERNS}pthread = next(p for p in DEFAULT_SPAWN_PATTERNS if p.name == "pthread_create")
When
- —
Then
- ✓ {"pthread_create", "xTaskCreate", "osThreadNew"} is at most names
- ✓ pthread.entry_arg_index equals 2
- ✓ pthread.name_arg_index is None
- ✓ pthread.kind equals "pthread"
tests/test_r1_richness.py:123 · its file's page
What it checks (4)
assert {"pthread_create", "xTaskCreate", "osThreadNew"} <= namesnot attributedassert pthread.entry_arg_index == 2not attributedassert pthread.name_arg_index is Nonenot attributedassert pthread.kind == "pthread"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.
Requirements it verifies (5)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-SCHEMA-001 | catalog | unknown |
| REQ-DDB-SCHEMA-002 | catalog | unknown |
| REQ-DDB-SCHEMA-003 | catalog | unknown |
| REQ-DDB-SCHEMA-004 | catalog | unknown |
| REQ-DDB-SCHEMA-007 | catalog | unknown |