test_regular_comment_not_doxygen¶
Tests › tests/guard/test_guard_python.py
What this test is for
Why it exists
The test says nothing about why.
Given
content = dedent("""\ # just a regular comment def func(): pass """)functions = parse_python(content)
When
- —
Then
- ✓ len(functions) equals 1
- ✓ functions[0].doxygen is None
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) · 23 of 357 steps
… 112 earlier steps
… 1 step between
… 201 later steps
tests/guard/test_guard_python.py:71 · its file's page
What it checks (2)
assert len(functions) == 1observesparse_pythonviafunctionsassert functions[0].doxygen is Noneobservesparse_pythonviafunctions
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_regular_comment_not_doxygen→parse_pythonWhat 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 6 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-018 measured
- REQ-DDB-GUARD-019 measured
- REQ-DDB-GUARD-020 measured
- REQ-DDB-GUARD-021 measured
- REQ-DDB-GUARD-024 inferred
- REQ-DDB-GUARD-025 measured