test_the_shape_helpers_match_what_the_grid_produced¶
Tests › tests/test_recovery_hint.py
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
- —
When
looks_like_path("src/x.cpp")looks_like_path("main.c")looks_like_path("ServerManager::execute")
4 more
looks_like_path("execute")bare_tail("ServerManager::execute")bare_tail("pkg.module.function")bare_tail("execute")
Then
- ✓ looks_like_path("src/x.cpp") holds
- ✓ looks_like_path("main.c") holds
- ✓ looks_like_path("ServerManager::execute") is false
- ✓ looks_like_path("execute") is false
- ✓ bare_tail("ServerManager::execute") equals "execute"
- ✓ bare_tail("pkg.module.function") equals "function"
- ✓ bare_tail("execute") equals "execute"
tests/test_recovery_hint.py:304 · its file's page
What it checks (7)
assert looks_like_path("src/x.cpp")observeslooks_like_pathassert looks_like_path("main.c")observeslooks_like_pathassert not looks_like_path("ServerManager::execute")observeslooks_like_pathassert not looks_like_path("execute")observeslooks_like_pathassert bare_tail("ServerManager::execute") == "execute"observesbare_tailassert bare_tail("pkg.module.function") == "function"observesbare_tailassert bare_tail("execute") == "execute"observesbare_tail
Where the product reaches it
Call flow
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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-013 measured