test_the_table_exists_when_nothing_includes_anything¶
Tests › tests/test_ast_includes.py
What this test is for
Why it exists
Empty, not absent.
Given
db = _index(tmp_path, {"main.py": "print(1)\n"})
When
import_ast_includes(db, tmp_path / "repo")
Then
- ✓ import_ast_includes(db, tmp_path / "repo") equals 0
- ✓ sqlite3.connect(db).execute("SELECT COUNT(*) FROM ast_includes").fetchone() equals (0,)
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) · 7 of 400 steps
… 70 earlier steps
… 313 later steps
tests/test_ast_includes.py:86 · its file's page
What it checks (2)
assert import_ast_includes(db, tmp_path / "repo") == 0observesimport_ast_includesassert sqlite3.connect(db).execute("SELECT COUNT(*) FROM ast_includes").fetchone() == (0,)observes_indexviadb
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
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 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-INDEX-010 measured
- REQ-DDB-PIPE-003 measured
- REQ-DDB-PIPE-011 measured
- REQ-DDB-PIPE-012 inferred