test_default_spawn_patterns_cover_std_thread

Tests › tests/test_r1_richness.py

passed Passed in the packaged run.

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

  1. by_name = {p.name: p for p in DEFAULT_SPAWN_PATTERNS}
  2. 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

  1. —
→

Then

  1. —

tests/test_r1_richness.py:209 · its file's page

What it checks (3)

  1. assert name in by_name, f"{name} missing from defaults" not attributed
  2. assert by_name[name].entry_arg_index == 0 not attributed
  3. assert by_name[name].name_arg_index is None 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)

requirementlinked byimplementers exercised
REQ-DDB-SCHEMA-001catalogunknown
REQ-DDB-SCHEMA-002catalogunknown
REQ-DDB-SCHEMA-003catalogunknown
REQ-DDB-SCHEMA-004catalogunknown
REQ-DDB-SCHEMA-007catalogunknown