test_an_undeclared_repo_still_walks_itself¶
Tests › tests/test_scanned_files.py
What this test is for
Why it exists
THE CONTROL. Saying nothing still means the whole repository — the fix must bound a declaration, not quietly narrow every build that made none.
Given
repo, wanted = _repo(tmp_path)args = argparse.Namespace(extra_exclude=[], scope_result=None)
When
scanned = _scanned_files(args, repo)
Then
- ✓ scanned contains wanted
- ✓ any(entry.startswith("node_modules/") for entry in scanned) holds
tests/test_scanned_files.py:60 · its file's page
What it checks (2)
assert wanted in scannedobserves_scanned_filesviascannedassert any(entry.startswith("node_modules/") for entry in scanned), ( "nothing was declared, so the vendored tree is in scope by default" )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_an_undeclared_repo_still_walks_itself→_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