test_overlaps_collapses_a_malformed_end_to_its_start_line¶
Tests › tests/test_ast_symbols.py
What this test is for
Why it exists
doxygen records `bodyend = -1` for a body it never saw closed. Treating that literally makes the interval `[start, -1]`, which an unguarded comparison reads as matching everything after `start` — silencing recovery for the whole file.
Given
fn = ParsedFunction(name="f", qualified="f", args="()", static=False, start=50, end=60)
When
- —
Then
- ✓ fn.overlaps(55, -1) is True
- ✓ fn.overlaps(10, -1) is False
tests/test_ast_symbols.py:366 · its file's page
What it checks (2)
assert fn.overlaps(55, -1) is Truenot attributedassert fn.overlaps(10, -1) is Falsenot attributed
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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-INDEX-004 measured