test_a_licence_only_header_is_rejected¶
Tests › tests/test_hash_file_docs.py
What this test is for
Why it exists
Publishing boilerplate as documentation would add rows of it to the corpus `search(corpus="prose")` reads and make a real header harder to find. Asserted per shape because each of these appears alone at the top of real files in the measured set.
Given
- —
When
extract_file_doc("x.sh", header + "\ncode\n")
Then
- ✓ extract_file_doc("x.sh", header + "\ncode\n") equals ""
tests/test_hash_file_docs.py:128 · its file's page
What it checks (1)
assert extract_file_doc("x.sh", header + "\ncode\n") == ""observesextract_file_doc
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
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-PIPE-008 measured