test_a_detail_the_body_does_not_carry_is_kept

Tests › tests/test_compact_wire.py

passed Passed in the packaged run.

What this test is for

Why it exists

Doc text outside the body (a C comment above it), or no body, keeps `detail`.

Given

  1. elsewhere = {"detail": _DOC, "body": {"lines": ["int fetch(int id) {", " return 0;", "}"]}}
→

When

  1. compact_docs(copy.deepcopy(elsewhere))
  2. bodiless = {"detail": _DOC}
  3. compact_docs(copy.deepcopy(bodiless))
→

Then

  1. ✓ compact_docs(copy.deepcopy(elsewhere)) equals elsewhere
  2. ✓ compact_docs(copy.deepcopy(bodiless)) equals bodiless

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

… 102 earlier steps

callercallercallercallerclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyloop (line 1539)loopdossier103. _batched_dossiers → _wire_shape103_wire_shape104. _wire_shape → compact_docs104compact_docs105. compact_docs → _uncarried_sentences105_uncarried_sentences▶ test enters106. _wire_shape → compact_neighbours106compact_neighbours107. compact_neighbours → _edge_defaults107_edge_defaults

… 119 later steps

tests/test_compact_wire.py:199 · its file's page

What it checks (2)

  1. assert compact_docs(copy.deepcopy(elsewhere)) == elsewhere observes compact_docs
  2. assert compact_docs(copy.deepcopy(bodiless)) == bodiless observes compact_docs

Where the product reaches it

  • dossier → _wire_shape → compact_docs (flow)

Call flow

test_a_detail_the_body_does_not_carry_is_kept→compact_docs

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_detail_the_body_does_not_carry_is_kept · 2 checkscompact_docsREQ-DDB-QUERY-014 · measured
Also reaches 1 requirement

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