test_rust_is_opt_in¶
Tests › tests/guard/test_guard_rust.py
What this test is for
Given
- —
When
validate_file(str(RUST_FIXTURE), CONFIG_DEFAULTS, no_git=True)
Then
- ✓ validate_file(str(RUST_FIXTURE), CONFIG_DEFAULTS, no_git=True) 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) · 13 of 357 steps
… 78 earlier steps
… 8 steps between
… 43 steps between
… 200 later steps
tests/guard/test_guard_rust.py:133 · its file's page
What it checks (1)
assert validate_file(str(RUST_FIXTURE), CONFIG_DEFAULTS, no_git=True) == []observesvalidate_file
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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-GUARD-024 | catalog | 4 of 5: _collect_rust_doc, _is_rust_test_item, _skip_rust_attributes, apply_autobrief |
Also reaches 24 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 inferred
- REQ-DDB-CONFIG-009 measured
- 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 measured
- REQ-DDB-GUARD-019 inferred
- REQ-DDB-GUARD-020 inferred
- REQ-DDB-GUARD-021 inferred
- REQ-DDB-GUARD-023 inferred
- REQ-DDB-GUARD-025 inferred
- REQ-DDB-GUARD-026 inferred
- REQ-DDB-GUARD-027 inferred
- REQ-DDB-PIPE-011 measured
- REQ-DDB-WIKI-054 inferred