test_default_spawn_patterns_cover_primitives

Tests › tests/test_r1_richness.py

passed Passed in the packaged run.

What this test is for

Given

  1. names = {p.name for p in DEFAULT_SPAWN_PATTERNS}
  2. pthread = next(p for p in DEFAULT_SPAWN_PATTERNS if p.name == "pthread_create")
→

When

  1. —
→

Then

  1. ✓ {"pthread_create", "xTaskCreate", "osThreadNew"} is at most names
  2. ✓ pthread.entry_arg_index equals 2
  3. ✓ pthread.name_arg_index is None
  4. ✓ pthread.kind equals "pthread"

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

What it checks (4)

  1. assert {"pthread_create", "xTaskCreate", "osThreadNew"} <= names not attributed
  2. assert pthread.entry_arg_index == 2 not attributed
  3. assert pthread.name_arg_index is None not attributed
  4. assert 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)

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