test_pruned_enumeration_matches_unpruned_reference¶
Tests › tests/test_treescan_pruning.py
What this test is for
Why it exists
The pruned scan returns exactly the unpruned scan's surviving set.
Given
roots, excludes = _make_scan_tree(tmp_path)
When
ts.enumerate_tree(roots, excludes, tmp_path)
Then
- ✓ ts.enumerate_tree(roots, excludes, tmp_path) equals _reference_enumerate( roots, excludes, tmp_path )
tests/test_treescan_pruning.py:113 · its file's page
What it checks (1)
assert ts.enumerate_tree(roots, excludes, tmp_path) == _reference_enumerate( roots, excludes, 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
test_pruned_enumeration_matches_unpruned_reference→_make_scan_tree→enumerate_tree→_reference_enumerateWhat 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 measured