test_excluded_file¶
Tests › tests/guard/test_guard_main.py
What this test is for
Why it exists
The test says nothing about why.
Given
monkeypatch.chdir(tmp_path)c_file = tmp_path / "gen" / "auto.c"
3 more
c_file.parent.mkdir()c_file.write_text("void Func(void) { }")config = { "validate": { **CONFIG_DEFAULTS["validate"], "exclude": ["gen/"], }, "impact": CONFIG_DEFAULTS["impact"], }
When
violations = validate_file(str(c_file), config, no_git=True)
Then
- ✓ violations equals []
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) · 4 of 357 steps
… 78 earlier steps
… 271 later steps
tests/guard/test_guard_main.py:37 · its file's page
What it checks (1)
assert violations == []observesvalidate_fileviaviolations
Where the product reaches it
main→_run→run_precommit→_validate_files→validate_file(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.
and 13 more requirement paths, listed below.
Also reaches 25 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 inferred
- REQ-DDB-CONFIG-009 inferred
- REQ-DDB-GUARD-001 measured
- REQ-DDB-GUARD-002 inferred
- REQ-DDB-GUARD-003 inferred
- REQ-DDB-GUARD-004 inferred
- REQ-DDB-GUARD-005 inferred
- REQ-DDB-GUARD-006 inferred
- REQ-DDB-GUARD-007 inferred
- REQ-DDB-GUARD-009 inferred
- REQ-DDB-GUARD-011 inferred
- REQ-DDB-GUARD-013 measured
- REQ-DDB-GUARD-014 inferred
- REQ-DDB-GUARD-016 inferred
- REQ-DDB-GUARD-018 inferred
- REQ-DDB-GUARD-019 inferred
- REQ-DDB-GUARD-020 inferred
- REQ-DDB-GUARD-021 inferred
- REQ-DDB-GUARD-023 inferred
- REQ-DDB-GUARD-024 inferred
- REQ-DDB-GUARD-025 inferred
- REQ-DDB-GUARD-026 inferred
- REQ-DDB-GUARD-027 inferred
- REQ-DDB-PIPE-011 inferred
- REQ-DDB-WIKI-054 inferred