test_python_checks_are_pinned_direct_via_variable_or_not

Tests › tests/test_wiki_checkpins.py

passed Passed in the packaged run.

What this test is for

Why it exists

`ast`: direct, via `r`, not attributed, direct (the innermost known call).

Verifies REQ-DDB-WIKI-044

Given

  1. —
→

When

  1. pins = pin_checks(_PY.splitlines(), "tests/test_store.py", {"save", "clean"})
→

Then

  1. ✓ _kinds(pins) equals [ ("direct", "save"), ("via variable", "save"), ("not attributed", None), ("direct", "clean"), ]
  2. ✓ pins[1].variable equals "r"
  3. ✓ pins[0].statement equals "assert save(2) == 2"

tests/test_wiki_checkpins.py:46 · its file's page

What it checks (3)

  1. assert _kinds(pins) == [ ("direct", "save"), ("via variable", "save"), ("not attributed", None), ("direct", "clean"), ] observes _kinds
  2. assert pins[1].variable == "r" observes pin_checks via pins
  3. assert pins[0].statement == "assert save(2) == 2" observes pin_checks via pins

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_python_checks_are_pinned_direct_via_variable_or_not→pin_checks→_kinds

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_python_checks_are_pinned_direct_via_variable_or_not · 3 checkspin_checksREQ-DDB-WIKI-043 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-044catalogunknown
Also reaches 1 requirement

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