test_a_one_line_docstring_is_one_block¶
Tests › tests/guard/test_guard_python_file_docstring.py
What this test is for
Why it exists
Opened and closed on one line.
Given
source = '"""@file x.py @brief Does x. @version 1"""\nimport os\n'
When
check_file_presence("x.py", source, _CONFIG)
Then
- ✓ check_file_presence("x.py", source, _CONFIG) equals []
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
`main` (clew/guard/main.py) · 11 of 357 steps
… 154 earlier steps
… 185 later steps
tests/guard/test_guard_python_file_docstring.py:41 · its file's page
What it checks (1)
assert check_file_presence("x.py", source, _CONFIG) == []observescheck_file_presence
Where the product reaches it
main→_run→run_precommit→_validate_files→validate_file→check_file_presence(flow)
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.
Also reaches 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-006 measured
- REQ-DDB-GUARD-019 measured
- REQ-DDB-GUARD-024 inferred