test_a_plain_comment_header_is_not_documentation¶
Tests › tests/test_filedocs.py
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
- —
When
extract_file_doc("src/thing.c", C_LICENSE_ONLY)extract_file_doc("src/mutex_order.c", C_SOURCE)
Then
- ✓ extract_file_doc("src/thing.c", C_LICENSE_ONLY) equals ""
- ✓ 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)
assert extract_file_doc("src/thing.c", C_LICENSE_ONLY) == ""observesextract_file_docassert "Copyright" not in extract_file_doc("src/mutex_order.c", C_SOURCE)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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-SCHEMA-014 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-008 measured