test_a_declared_scope_bounds_the_parse_built_file_set

Tests › tests/test_scanned_files.py

passed Passed in the packaged run.

What this test is for

Why it exists

A declared root excludes everything outside it.

Given

  1. repo, wanted = _repo(tmp_path)
  2. args = argparse.Namespace( extra_exclude=[], scope_result=DerivedScope( source=SOURCE_DECLARED, reason="declared in the test", roots=(repo / "src",), ), )
→

When

  1. scanned = _scanned_files(args, repo)
→

Then

  1. ✓ scanned equals [wanted]

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

What it checks (1)

  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_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_a_declared_scope_bounds_the_parse_built_file_set→_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_a_declared_scope_bounds_the_parse_built_file_set · 1 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.