test_a_declared_scope_bounds_the_parse_built_file_set¶
Tests › tests/test_scanned_files.py
What this test is for
Why it exists
A declared root excludes everything outside it.
Given
repo, wanted = _repo(tmp_path)args = argparse.Namespace( extra_exclude=[], scope_result=DerivedScope( source=SOURCE_DECLARED, reason="declared in the test", roots=(repo / "src",), ), )
When
scanned = _scanned_files(args, repo)
Then
- ✓ scanned equals [wanted]
tests/test_scanned_files.py:40 · its file's page
What it checks (1)
assert scanned == [wanted], ( "the parse-built front end was handed files outside the declared scope, so the " f"`path` table publishes a tree the owner excluded: {scanned}" )observes_scanned_filesviascanned
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_a_declared_scope_bounds_the_parse_built_file_set→_repo→_scanned_filesWhat 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