test_malformed_files_are_reported_not_raised¶
Tests › tests/test_toolchain.py
What this test is for
Given
(tmp_path / "toolchain.toml").write_text("[ignore\n")(tmp_path / "suppress.toml").write_text('[[suppress]]\ntool = "*"\nfile_glob = 3\n')
When
config = load_toolchain_config(tmp_path)
Then
- ✓ config.index_globs equals ()
- ✓ any("could not be read" in p for p in config.problems) holds
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
`main` (clew/guard/main.py) · 7 of 357 steps
… 85 earlier steps
… 257 later steps
1 more
- Build this wiki from the index · 1 of 400 steps
tests/test_toolchain.py:67 · its file's page
What it checks (2)
assert config.index_globs == ()observesload_toolchain_configviaconfigassert any("could not be read" in p for p in config.problems)observesload_toolchain_configviaconfig
Where the product reaches it
main→_run→run_precommit→_validate_files→validate_file→gate_exclusion→_gate_matcher→load_toolchain_config(flow)
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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-009 measured
- REQ-DDB-WIKI-054 inferred