test_matched_directories_are_returned_whole¶
Tests › tests/test_toolchain.py
What this test is for
Given
for rel in ("vendor/a/b.c", "vendor/c.c", "src/vendor/x.c", "src/k.c", "build/o.c", "x.min.js"): _write(tmp_path, rel)
When
found = expand_globs(tmp_path, ("vendor/**", "build", "*.min.js"))
Then
- ✓ found equals sorted([tmp_path / "vendor", tmp_path / "build", tmp_path / "x.min.js"])
tests/test_toolchain.py:84 · its file's page
What it checks (1)
assert found == sorted([tmp_path / "vendor", tmp_path / "build", tmp_path / "x.min.js"])observesexpand_globsviafound
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