test_load_thread_patterns_merges_overrides

Tests › tests/test_r1_richness.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Verifies REQ-DDB-SCHEMA-002 REQ-DDB-SCHEMA-003 REQ-DDB-SCHEMA-004 REQ-DDB-SCHEMA-007

Given

  1. manifest = tmp_path / "spawns.yaml"
  2. manifest.write_text( "spawns:\n" " - name: SYSTEM_TASKCREATE\n" " entry_arg_index: 0\n" " name_arg_index: 1\n" " kind: task\n", )
→

When

  1. patterns = load_thread_patterns(manifest)
  2. by_name = {p.name: p for p in patterns}
  3. tc = by_name["SYSTEM_TASKCREATE"]
→

Then

  1. ✓ by_name contains "pthread_create"
  2. ✓ tc.entry_arg_index equals 0
  3. ✓ tc.name_arg_index equals 1
  4. ✓ tc.kind equals "task"

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

What it checks (4)

  1. assert "pthread_create" in by_name not attributed
  2. assert tc.entry_arg_index == 0 not attributed
  3. assert tc.name_arg_index == 1 not attributed
  4. assert tc.kind == "task" not attributed

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

test_load_thread_patterns_merges_overrides→load_thread_patterns

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.

test_load_thread_patterns_merges_overrides · 4 checksload_thread_patternsREQ-DDB-SCHEMA-001 · measuredload_thread_patternsdeclaration_originREQ-DDB-SCHEMA-012 · measured

Requirements it verifies (4)

requirementlinked byimplementers exercised
REQ-DDB-SCHEMA-002catalogunknown
REQ-DDB-SCHEMA-003catalogunknown
REQ-DDB-SCHEMA-004catalogunknown
REQ-DDB-SCHEMA-007catalogunknown
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.