test_a_plain_comment_header_is_not_documentation

Tests › tests/test_filedocs.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE CONTROL ON THE WHOLE CORPUS. A bare `/*` block is excluded by construction — only `/**`, `/*!`, `///` and `//!` count — because if a copyright notice entered the corpus then `search("copyright")` would return every file in the repository and the new surface would be pure noise on its first query. Deciding by CONTENT would need a heuristic about what a license looks like; the marker the author already wrote answers it exactly.

Verifies REQ-DDB-SCHEMA-014

Given

  1. —
→

When

  1. extract_file_doc("src/thing.c", C_LICENSE_ONLY)
  2. extract_file_doc("src/mutex_order.c", C_SOURCE)
→

Then

  1. ✓ extract_file_doc("src/thing.c", C_LICENSE_ONLY) equals ""
  2. ✓ extract_file_doc("src/mutex_order.c", C_SOURCE) does not contain "Copyright"

tests/test_filedocs.py:130 · its file's page

What it checks (2)

  1. assert extract_file_doc("src/thing.c", C_LICENSE_ONLY) == "" observes extract_file_doc
  2. assert "Copyright" not in extract_file_doc("src/mutex_order.c", C_SOURCE) 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_plain_comment_header_is_not_documentation→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_plain_comment_header_is_not_documentation · 2 checksextract_file_docREQ-DDB-PIPE-008 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-SCHEMA-014catalogunknown
Also reaches 1 requirement

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