test_key_list_recognition¶
Tests › tests/test_datamodel.py
What this test is for
Why it exists
THE LOOSENING THAT WOULD BE INVISIBLE. A relaxed entry pattern still recognises the real key list, so the positive case cannot detect it — what detects it is the manifest-set selection file (a sequence of PATHS, which the other generator ships) being mistaken for a key list, at which point every shape-matching manifest in the tree is vouched for by names that are really file paths.
Given
path = tmp_path / "candidate.yaml"path.write_text(body, encoding="utf-8")
When
names = read_key_list(path)
Then
- ✓ None if names is None else len(names) equals expected
tests/test_datamodel.py:326 · its file's page
What it checks (1)
assert (None if names is None else len(names)) == expectedobservesread_key_listvianames
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
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.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-SCHEMA-013 measured
- REQ-DDB-WIKI-054 inferred