test_plain_comment_is_not_jsdoc¶
Tests › tests/guard/test_guard_jsts.py
What this test is for
Why it exists
The test says nothing about why.
Given
functions = _parse( "javascript", "// not jsdoc\nfunction f() {}\n/*** banner */\nfunction g() {}\n" )
When
- —
Then
- ✓ functions["f"].doxygen is None
- ✓ functions["g"].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) · 24 of 357 steps
… 112 earlier steps
… 1 step between
… 201 later steps
tests/guard/test_guard_jsts.py:75 · its file's page
What it checks (1)
assert functions["f"].doxygen is None and functions["g"].doxygen is Noneobserves_parseviafunctions
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_plain_comment_is_not_jsdoc→_parseWhat 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 inferred
- REQ-DDB-GUARD-024 inferred
- REQ-DDB-GUARD-025 measured