test_the_shape_helpers_match_what_the_grid_produced

Tests › tests/test_recovery_hint.py

passed Passed in the packaged run.

What this test is for

Why it exists

Pinned separately because the ORDER of the checks in `_hint_from` depends on them: a qualified C++ name contains `::` and must not be read as a path, and a bare `main.c` must be.

Given

  1. —
→

When

  1. looks_like_path("src/x.cpp")
  2. looks_like_path("main.c")
  3. looks_like_path("ServerManager::execute")
4 more
  1. looks_like_path("execute")
  2. bare_tail("ServerManager::execute")
  3. bare_tail("pkg.module.function")
  4. bare_tail("execute")
→

Then

  1. ✓ looks_like_path("src/x.cpp") holds
  2. ✓ looks_like_path("main.c") holds
  3. ✓ looks_like_path("ServerManager::execute") is false
  4. ✓ looks_like_path("execute") is false
  5. ✓ bare_tail("ServerManager::execute") equals "execute"
  6. ✓ bare_tail("pkg.module.function") equals "function"
  7. ✓ bare_tail("execute") equals "execute"

tests/test_recovery_hint.py:304 · its file's page

What it checks (7)

  1. assert looks_like_path("src/x.cpp") observes looks_like_path
  2. assert looks_like_path("main.c") observes looks_like_path
  3. assert not looks_like_path("ServerManager::execute") observes looks_like_path
  4. assert not looks_like_path("execute") observes looks_like_path
  5. assert bare_tail("ServerManager::execute") == "execute" observes bare_tail
  6. assert bare_tail("pkg.module.function") == "function" observes bare_tail
  7. assert bare_tail("execute") == "execute" observes bare_tail

Where the product reaches it

  • dossier → _qualified_reread → _split_qualified → bare_tail (flow)
  • dossier → _batched_dossiers → batch_payload → recovery_hint → _hint_from → looks_like_path (flow)

Call flow

test_the_shape_helpers_match_what_the_grid_produced→looks_like_path→bare_tail

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_the_shape_helpers_match_what_the_grid_produced · 7 checkslooks_like_pathREQ-DDB-QUERY-013 · measured
Also reaches 1 requirement

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