test_root_under_an_exclude_contributes_nothing¶
Tests › tests/test_treescan_pruning.py
What this test is for
Why it exists
Pruning starts AT the root, so an exclude above the root would be invisible to the descent unless the root itself is tested.
Given
_write_scan_file(tmp_path / "src" / "engine.c")
When
ts.enumerate_tree([tmp_path / "src"], [tmp_path], tmp_path)
Then
- ✓ ts.enumerate_tree([tmp_path / "src"], [tmp_path], tmp_path) equals {}
tests/test_treescan_pruning.py:165 · its file's page
What it checks (1)
assert ts.enumerate_tree([tmp_path / "src"], [tmp_path], tmp_path) == {}observesenumerate_tree
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
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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-INDEX-002 measured
- REQ-DDB-PIPE-003 inferred