test_rows_helper_treats_its_items_as_rows

Tests › tests/test_wire.py

passed Passed in the packaged run.

What this test is for

Why it exists

The two entry points differ ONLY in whether the top level is a row, and calling the wrong one is a real mistake that the MCP parity test caught: `one` per element treats each as an envelope and prunes nothing.

Given

  1. —
→

When

  1. wire.rows([_Row()])
  2. wire.one(_Row())
→

Then

  1. ✓ wire.rows([_Row()]) equals [{"name": "callee", "line_start": 7}]
  2. ✓ wire.one(_Row()) equals { "name": "callee", "line_start": 7, "strength": None, "crosses_thread": None, "implementors": [], }

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 · 7 of 226 steps

… 27 earlier steps

callercallercallercallerclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyother filesother filesother filesother filesopt (line 333)optdossier28. batch_payload → _flatten_subject28_flatten_subject29. _flatten_subject → one29one30. one → _listed30_listed▶ test enters31–36. one → _prune_rows31_prune_rows +5 more37–38. _flatten_subject → _config_found_on_the_wire37_config_found_on_the_wire +1 more

… 188 later steps

2 more

tests/test_wire.py:182 · its file's page

What it checks (2)

  1. assert wire.rows([_Row()]) == [{"name": "callee", "line_start": 7}] observes rows
  2. assert wire.one(_Row()) == { "name": "callee", "line_start": 7, "strength": None, "crosses_thread": None, "implementors": [], } observes one

Where the product reaches it

  • dossier → subject_payload → _flatten_subject → one (flow)

Call flow

test_rows_helper_treats_its_items_as_rows→rows→one

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_rows_helper_treats_its_items_as_rows · 2 checksrowsREQ-DDB-QUERY-001 · measured
Also reaches 1 requirement

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