test_the_shebang_is_skipped

Tests › tests/test_hash_file_docs.py

passed Passed in the packaged run.

What this test is for

Why it exists

`#!/usr/bin/env perl` is a kernel directive that happens to start with `#`. Including it makes every script's documentation begin with an interpreter path, which is noise in a corpus a reader searches by concept.

Given

  1. —
→

When

  1. doc = extract_file_doc("scripts/generate_errors.pl", PERL)
→

Then

  1. ✓ doc does not contain "/usr/bin/env"
  2. ✓ doc.lstrip().startswith("Generate error.c") holds

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

What it checks (2)

  1. assert "/usr/bin/env" not in doc, doc observes extract_file_doc via doc
  2. assert doc.lstrip().startswith("Generate error.c"), doc observes extract_file_doc via 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_the_shebang_is_skipped→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_the_shebang_is_skipped · 2 checksextract_file_docREQ-DDB-PIPE-008 · measured
Also reaches 1 requirement

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