test_an_inspecting_shell_command_is_still_pressure¶
Tests › tests/test_hook.py
What this test is for
Why it exists
THE HALF THAT MUST NOT BE LOST. The hook is useful precisely on a run of `sed`/`grep` reads that `dossier` would have answered in one call — silencing those would remove the signal rather than the noise.
Verifies REQ-DDB-WIKI-054
Given
inspections = ( "cat clew/testscope.py", "head -20 a/b/c.py", "sed -n '1,5p' x.py", "grep -n pattern clew/cli.py", "LC_ALL=C grep pattern file.py", "cd clew && grep -rn thing .", "rg --files-with-matches thing", "/usr/bin/cat a.py", )
When
for command in inspections: assert hook._is_inspection(command), f"{command!r} is a file inspection"
Then
- —
tests/test_hook.py:1149 · its file's page
What it checks (1)
assert hook._is_inspection(command), f"{command!r} is a file inspection"observes_is_inspection
Where the product reaches it
main→_is_inspection(flow)
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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-054 | catalog | unknown |