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
Given
patterns_path = _write_name_prefix_patterns_yaml(tmp_path)
When
writers, readers = load_shared_key_patterns(patterns_path)
Then
- ✓ len(writers) equals 1
- ✓ writers[0].prefix equals "STORE_SET_"
- ✓ len(readers) equals 1
- ✓ readers[0].prefix equals "STORE_GET_"
tests/test_build_docs_db.py:1327 · its file's page
What it checks (4)
assert len(writers) == 1not attributedassert writers[0].prefix == "STORE_SET_"not attributedassert len(readers) == 1not attributedassert 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_patternsWhat 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 (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-001 | catalog | unknown |
| REQ-DDB-PIPE-010 | catalog | unknown |
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-SCHEMA-005 measured
- REQ-DDB-SCHEMA-012 measured