test_an_undeclared_never_walk_directory_is_still_pruned_silently¶
Tests › tests/test_toolchain.py
What this test is for
Why it exists
THE CONTROL, and the reason the fix is "match first" rather than "stop pruning": an undeclared `node_modules` must not become an exclusion the owner never asked for, which would put every such tree into the Doxyfile's EXCLUDE and the cache key.
Verifies REQ-DDB-PIPE-011
Given
_write(tmp_path, "node_modules/dep/index.js", "module.exports = 1;\n")_write(tmp_path, "vendor/x.c")
When
expand_globs(tmp_path, ("vendor/**",))
Then
- ✓ expand_globs(tmp_path, ("vendor/**",)) equals [tmp_path / "vendor"]
tests/test_toolchain.py:181 · its file's page
What it checks (1)
assert expand_globs(tmp_path, ("vendor/**",)) == [tmp_path / "vendor"]observesexpand_globs
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
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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-011 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-009 measured