test_shell_and_cmake_definitions_become_rows¶
Tests › tests/test_script_front_end.py
What this test is for
Why it exists
The end-to-end path: registration, the shared harvest's dispatch, and the writer.
Given
db, root = repo
When
missing = substrate.missing_languages(("bash", "cmake"))if missing: pytest.skip(f"substrate lacks {missing}; clew requires lang-parsing-substrate>=0.12.0")register_paths(db, ["scripts/deploy.sh", "CMakeLists.txt", "config.yaml"])
2 more
emit_definitions(db, root, None)members = _members(db)
Then
- ✓ members equals { "deploy": "function", "add_firmware": "function", "strict_warnings": "macro definition", }
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.
clew — `main` (clew/cli.py) · 9 of 400 steps
… 70 earlier steps
… 313 later steps
1 more
- `main` (clew/guard/main.py) · 6 of 357 steps
tests/test_script_front_end.py:173 · its file's page
What it checks (1)
assert members == { "deploy": "function", "add_firmware": "function", "strict_warnings": "macro definition", }observes_membersviamembers
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
test_shell_and_cmake_definitions_become_rows→missing_languages→register_paths→emit_definitions→_membersWhat 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.
Also reaches 8 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-019 measured
- REQ-DDB-GUARD-024 measured
- REQ-DDB-INDEX-004 measured
- REQ-DDB-PIPE-003 measured
- REQ-DDB-PIPE-011 measured
- REQ-DDB-PIPE-012 measured
- REQ-DDB-SCHEMA-012 measured
- REQ-DDB-SCHEMA-014 measured