test_overlaps_collapses_a_malformed_end_to_its_start_line

Tests › tests/test_ast_symbols.py

passed Passed in the packaged run.

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

  1. fn = ParsedFunction(name="f", qualified="f", args="()", static=False, start=50, end=60)
→

When

  1. —
→

Then

  1. ✓ fn.overlaps(55, -1) is True
  2. ✓ fn.overlaps(10, -1) is False

tests/test_ast_symbols.py:366 · its file's page

What it checks (2)

  1. assert fn.overlaps(55, -1) is True not attributed
  2. assert fn.overlaps(10, -1) is False not 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.