test_the_graded_perl_header_is_extracted

Tests › tests/test_hash_file_docs.py

passed Passed in the packaged run.

What this test is for

Why it exists

RED BEFORE THE FIX: `.pl` matches no extractor, so this returns "".

Given

  1. —
→

When

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

Then

  1. ✓ doc holds
  2. ✓ doc contains "Generate error.c"
  3. ✓ doc contains "include_dir data_dir error_file"

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

What it checks (3)

  1. assert doc, "a leading # block is file-level documentation" observes extract_file_doc via doc
  2. assert "Generate error.c" in doc observes extract_file_doc via doc
  3. assert "include_dir data_dir error_file" in doc, 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_graded_perl_header_is_extracted→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_graded_perl_header_is_extracted · 3 checksextract_file_docREQ-DDB-PIPE-008 · measured
Also reaches 1 requirement

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