test_mark_reachability_no_edges_skips

Tests › tests/test_build_docs_db.py

passed Passed in the packaged run.

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

  1. db = tmp_path / "empty.db"
  2. conn = sqlite3.connect(str(db))
3 more
  1. 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'); """, )
  2. conn.commit()
  3. conn.close()
→

When

  1. mark_reachability(db)
  2. conn = sqlite3.connect(str(db))
  3. tables = { r[0] for r in conn.execute( "SELECT name FROM sqlite_master WHERE type='table'", ).fetchall() }
  4. conn.close()
→

Then

  1. ✓ tables does not contain "symbol_liveness"

tests/test_build_docs_db.py:963 · its file's page

What it checks (1)

  1. assert "symbol_liveness" not in tables not 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

test_mark_reachability_no_edges_skips→mark_reachability

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.

test_mark_reachability_no_edges_skips · 1 checksmark_reachabilityREQ-DDB-PIPE-004 · measured

Requirements it verifies (2)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-001catalogunknown
REQ-DDB-PIPE-010catalogunknown
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.