The merged list and chain_trace's neighbour list sort by the SAME key tuple, so the two surfaces are provably consistent rather than merely overlapping. A shared constant would not prove it — compare the emitted order for a name that has both a call and a key neighbour.
try: merged = _call_edges(conn, "sensor_poll", want_callers=False, include_dataflow=True) assert {e.edge_class for e in merged} == {"call", "key"}, "fixture must exercise both" neighbours = _neighbors(conn, "sensor_poll", forward=True) merged_keys = [(e.name, e.edge_class, e.key_name or "") for e in merged] neigh_keys = [(n, h.edge_class, h.key_name or "") for n, h in neighbours] # Both surfaces emit in the SAME key order, so a consumer reading one # after the other never sees the neighbours reshuffled. assert merged_keys == sorted(merged_keys) assert neigh_keys == sorted(neigh_keys) # ...and the shared neighbours appear in the same relative sequence. shared = set(neigh_keys) assert [k for k in dict.fromkeys(merged_keys) if k in shared] == sorted(shared) finally: conn.close()
→
Then
—
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.
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.