test_load_shared_key_patterns_parses_name_prefix

Tests › tests/test_build_docs_db.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Verifies REQ-DDB-PIPE-001 REQ-DDB-PIPE-010

Given

  1. patterns_path = _write_name_prefix_patterns_yaml(tmp_path)
→

When

  1. writers, readers = load_shared_key_patterns(patterns_path)
→

Then

  1. ✓ len(writers) equals 1
  2. ✓ writers[0].prefix equals "STORE_SET_"
  3. ✓ len(readers) equals 1
  4. ✓ readers[0].prefix equals "STORE_GET_"

tests/test_build_docs_db.py:1327 · its file's page

What it checks (4)

  1. assert len(writers) == 1 not attributed
  2. assert writers[0].prefix == "STORE_SET_" not attributed
  3. assert len(readers) == 1 not attributed
  4. assert readers[0].prefix == "STORE_GET_" 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_shared_key_patterns_parses_name_prefix→_write_name_prefix_patterns_yaml→load_shared_key_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_shared_key_patterns_parses_name_prefix · 4 checksload_shared_key_patternsREQ-DDB-SCHEMA-005 · measuredload_shared_key_patternsdeclaration_originREQ-DDB-SCHEMA-012 · measured

Requirements it verifies (2)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-001catalogunknown
REQ-DDB-PIPE-010catalogunknown
Also reaches 2 requirements

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