test_key_list_recognition

Tests › tests/test_datamodel.py

passed Passed in the packaged run.

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

  1. path = tmp_path / "candidate.yaml"
  2. path.write_text(body, encoding="utf-8")
→

When

  1. names = read_key_list(path)
→

Then

  1. ✓ None if names is None else len(names) equals expected

tests/test_datamodel.py:326 · its file's page

What it checks (1)

  1. assert (None if names is None else len(names)) == expected observes read_key_list via names

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_key_list_recognition→read_key_list

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_key_list_recognition · 1 checksread_key_listREQ-DDB-SCHEMA-013 · measuredread_key_listallREQ-DDB-WIKI-054 · inferred
Also reaches 2 requirements

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