content = dedent("""\ ## @brief Process data from the sensor. # @version 2.0 # @param data Raw sensor reading. # @return Calibrated value. def process_sensor(data): return calibrate(data) """)
functions = parse_python(content)
tags = functions[0].doxygen.tags
→
When
—
→
Then
✓ len(functions) equals 1
✓ tags["brief"] equals ["Process data from the sensor."]
✓ tags["version"] equals ["2.0"]
✓ tags contains "param"
✓ tags contains "return"
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.
assert len(functions) == 1observes parse_python via functions
assert tags["brief"] == ["Process data from the sensor."]not attributed
assert tags["version"] == ["2.0"]not attributed
assert "param" in tagsnot attributed
assert "return" in tagsnot attributed
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_multiline_tags→parse_python
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 6 requirements
Its run touches their code; that is reach, not proof.