test_the_shell_doc_block_reaches_the_row¶
Tests › tests/test_script_front_end.py
What this test is for
Why it exists
The `#` block above a shell function becomes its brief.
Given
db, root = repo
When
if not substrate.has_language("bash"): pytest.skip("substrate has no bash grammar; clew requires lang-parsing-substrate>=0.12.0")register_paths(db, ["scripts/deploy.sh"])emit_definitions(db, root, None)
2 more
conn = sqlite3.connect(str(db))try: brief = conn.execute( "SELECT briefdescription FROM memberdef WHERE name = 'deploy'" ).fetchone()[0] finally: conn.close()
Then
- ✓ brief contains "Deploy the built artefact."
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:194 · its file's page
What it checks (1)
assert "Deploy the built artefact." in briefnot attributed
Where the product reaches it
main→propose_main→propose→build_context→repo_source_files→_ts_language_for→_grammar_available→has_language(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.
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