test_a_qualified_lookup_reaches_an_out_of_line_definition

Tests › tests/test_outofline_definitions.py

passed Passed in the packaged run.

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

  1. conn = _fixture(tmp_path)
→

When

  1. try: got = _common.resolve_rowid(conn, "run_turn", "lib::Engine::run_turn") finally: conn.close()
→

Then

  1. ✓ 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

callercallercallercallerclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesloop (line 515)loopdossier46. _ambiguity_counts → table_exists46table_exists47. _ambiguity_counts → function_candidates47function_candidates48–53. function_candidates → table_exists48table_exists +5 more54. resolve_selector → _ends_at_boundary54_ends_at_boundary55. matching_identity → qualified_name_of55qualified_name_of56. _flatten_subject → _gate_definitions56_gate_definitions57. _gate_definitions → macro_definitions57macro_definitions

… 151 steps between

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyloop (line 558)looploop (line 570)loopopt (line 239)optopt (line 285)optdossier209. chain_trace → _expand_neighbor209_expand_neighbor210. _expand_neighbor → resolve_rowid210resolve_rowid211. resolve_rowid → table_exists211table_exists▶ test enters212. resolve_rowid → function_candidates212function_candidates213. resolve_rowid → _test_scope_term213_test_scope_term214. _expand_neighbor → _make_node214_make_node

… 12 later steps

1 more

tests/test_outofline_definitions.py:101 · its file's page

What it checks (1)

  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" ) observes resolve_rowid via got

Where the product reaches it

  • dossier → _chain_for → chain_trace → _expand_neighbor → resolve_rowid (flow)

Call flow

test_a_qualified_lookup_reaches_an_out_of_line_definition→_fixture→resolve_rowid

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_a_qualified_lookup_reaches_an_out_of_line_definition · 1 checksresolve_rowidREQ-DDB-QUERY-003 · measuredresolve_rowidREQ-DDB-QUERY-010 · measured
Also reaches 2 requirements

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