test_default_spawn_patterns_cover_std_thread¶
Tests › tests/test_r1_richness.py
What this test is for
Why it exists
std::thread/std::jthread are C++ language primitives → shipped defaults, entry at arg 0, no name literal.
Verifies REQ-DDB-SCHEMA-001 REQ-DDB-SCHEMA-002 REQ-DDB-SCHEMA-003 REQ-DDB-SCHEMA-004 REQ-DDB-SCHEMA-007
Given
by_name = {p.name: p for p in DEFAULT_SPAWN_PATTERNS}for name in ("std::thread", "std::jthread"): assert name in by_name, f"{name} missing from defaults" assert by_name[name].entry_arg_index == 0 assert by_name[name].name_arg_index is None
When
- —
Then
- —
tests/test_r1_richness.py:209 · its file's page
What it checks (3)
assert name in by_name, f"{name} missing from defaults"not attributedassert by_name[name].entry_arg_index == 0not attributedassert by_name[name].name_arg_index is Nonenot 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 |