test_a_licence_only_header_is_rejected

Tests › tests/test_hash_file_docs.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. extract_file_doc("x.sh", header + "\ncode\n")
→

Then

  1. ✓ extract_file_doc("x.sh", header + "\ncode\n") equals ""

tests/test_hash_file_docs.py:128 · its file's page

What it checks (1)

  1. assert extract_file_doc("x.sh", header + "\ncode\n") == "" observes extract_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

test_a_licence_only_header_is_rejected→extract_file_doc

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_licence_only_header_is_rejected · 1 checksextract_file_docREQ-DDB-PIPE-008 · measured
Also reaches 1 requirement

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