test_mark_reachability_no_edges_skips¶
Tests › tests/test_build_docs_db.py
What this test is for
Why it exists
Empty call_edges → log warning, leave symbol_liveness absent.
Verifies REQ-DDB-PIPE-001 REQ-DDB-PIPE-010
Given
db = tmp_path / "empty.db"conn = sqlite3.connect(str(db))
3 more
conn.executescript( """ CREATE TABLE memberdef ( rowid INTEGER PRIMARY KEY, kind TEXT, name TEXT ); CREATE TABLE call_edges ( caller_rowid INTEGER, callee_rowid INTEGER, source TEXT, confidence TEXT ); INSERT INTO memberdef (rowid, kind, name) VALUES (1, 'function', 'x'); """, )conn.commit()conn.close()
When
mark_reachability(db)conn = sqlite3.connect(str(db))tables = { r[0] for r in conn.execute( "SELECT name FROM sqlite_master WHERE type='table'", ).fetchall() }conn.close()
Then
- ✓ tables does not contain "symbol_liveness"
tests/test_build_docs_db.py:963 · its file's page
What it checks (1)
assert "symbol_liveness" not in tablesnot attributed
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.
Requirements it verifies (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-001 | catalog | unknown |
| REQ-DDB-PIPE-010 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-004 measured