test_an_undeclared_repo_still_walks_itself

Tests › tests/test_scanned_files.py

passed Passed in the packaged run.

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

  1. repo, wanted = _repo(tmp_path)
  2. args = argparse.Namespace(extra_exclude=[], scope_result=None)
→

When

  1. scanned = _scanned_files(args, repo)
→

Then

  1. ✓ scanned contains wanted
  2. ✓ any(entry.startswith("node_modules/") for entry in scanned) holds

tests/test_scanned_files.py:60 · its file's page

What it checks (2)

  1. assert wanted in scanned observes _scanned_files via scanned
  2. assert any(entry.startswith("node_modules/") for entry in scanned), ( "nothing was declared, so the vendored tree is in scope by default" ) observes _scanned_files via scanned

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_files

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.

test_an_undeclared_repo_still_walks_itself · 2 checks_scanned_filesenumerate_treeREQ-DDB-INDEX-002 · measured_scanned_filesenumerate_treerel_keyREQ-DDB-PIPE-003 · measured
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.