test_exclude_naming_a_file_is_honoured

Tests › tests/test_treescan_pruning.py

passed Passed in the packaged run.

What this test is for

Why it exists

An exclude naming a single FILE drops just that file.

Given

  1. _write_scan_file(tmp_path / "src" / "engine.c")
  2. _write_scan_file(tmp_path / "src" / "generated.c")
→

When

  1. found = ts.enumerate_tree([tmp_path], [tmp_path / "src" / "generated.c"], tmp_path)
→

Then

  1. ✓ found contains "src/engine.c"
  2. ✓ found does not contain "src/generated.c"

tests/test_treescan_pruning.py:178 · its file's page

What it checks (2)

  1. assert "src/engine.c" in found observes enumerate_tree via found
  2. assert "src/generated.c" not in found observes enumerate_tree via found

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_exclude_naming_a_file_is_honoured→_write_scan_file→enumerate_tree

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_exclude_naming_a_file_is_honoured · 2 checksenumerate_treeREQ-DDB-INDEX-002 · measuredenumerate_treerel_keyREQ-DDB-PIPE-003 · measured
Also reaches 2 requirements

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