test_a_qualified_lookup_reaches_an_out_of_line_definition¶
Tests › tests/test_outofline_definitions.py
What this test is for
Why it exists
WHAT IS NOT ASSERTED HERE, AND WHY. A BARE `run_turn` still resolves to the in-place test helper, because once both rows are correctly recognised as definitions they TIE and `rowid` ascending decides. Making the class method win would need a new preference — "not under tests/", or "prefer a qualified definition" — and that is a policy choice, not something the measurement settles. Inventing it here would be this repo's own anti-pattern: a heuristic whose real purpose is to make an assertion pass.
Given
conn = _fixture(tmp_path)
When
try: got = _common.resolve_rowid(conn, "run_turn", "lib::Engine::run_turn") finally: conn.close()
Then
- ✓ got equals OUT_OF_LINE
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.
Look up one name: everything the index holds about it · 9 of 226 steps
… 45 earlier steps
… 151 steps between
… 12 later steps
1 more
- Build this wiki from the index · 7 of 400 steps
tests/test_outofline_definitions.py:101 · its file's page
What it checks (1)
assert got == OUT_OF_LINE, ( "a qualified lookup could not reach the out-of-line definition, so there is no way " "to name the real method at all" )observesresolve_rowidviagot
Where the product reaches it
dossier→_chain_for→chain_trace→_expand_neighbor→resolve_rowid(flow)
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-QUERY-003 measured
- REQ-DDB-QUERY-010 measured