test_a_real_run_gives_a_pinned_check_its_value¶
Tests › tests/test_wiki_tracerun.py
What this test is for
Why it exists
END TO END (2.0.0, P5.5): the plugin's `clew.call_line` and the pins' lines agree. In `test_load`, `got = load([1, 2])` (line 6) binds `got`, and `assert got == [2, 4]` reads it, so the check observes `load` via `got` and its traced value is `[2, 4]`.
Verifies REQ-DDB-WIKI-036 REQ-DDB-WIKI-049
Given
- —
When
run = trace_test(repo, "tests/test_m.py::test_load")body = (repo / "tests" / "test_m.py").read_text().splitlines()[3:7]pins = pin_checks(body, "tests/test_m.py", {"load"}, first_line=4)traced_values(pins, run["otlp"], "test_load")
Then
- ✓ [(p.kind, p.variable, p.bound_line) for p in pins] equals [("via variable", "got", 6)]
- ✓ traced_values(pins, run["otlp"], "test_load") equals {0: "[2, 4]"}
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
Build this wiki from the index · 35 of 400 steps
… 7 steps between
… 343 later steps
tests/test_wiki_tracerun.py:412 · its file's page
What it checks (2)
assert [(p.kind, p.variable, p.bound_line) for p in pins] == [("via variable", "got", 6)]observespin_checksviapinsassert traced_values(pins, run["otlp"], "test_load") == {0: "[2, 4]"}observestraced_values
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.
Requirements it verifies (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-036 | catalog | unknown |
| REQ-DDB-WIKI-049 | catalog | unknown |
Also reaches 5 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-012 inferred
- REQ-DDB-WIKI-026 measured
- REQ-DDB-WIKI-035 measured
- REQ-DDB-WIKI-043 measured
- REQ-DDB-WIKI-054 inferred