test_missing_call_edges_table_is_not_fatal¶
Tests › tests/test_dominated_edges.py
What this test is for
Why it exists
An index with no call_edges table returns 0 instead of failing the build.
Given
conn = sqlite3.connect(":memory:")conn.execute("CREATE TABLE memberdef (rowid INTEGER PRIMARY KEY, name TEXT, definition TEXT)")
When
prune_dominated_fuzzy_edges(conn)
Then
- ✓ prune_dominated_fuzzy_edges(conn) equals 0
tests/test_dominated_edges.py:340 · its file's page
What it checks (1)
assert prune_dominated_fuzzy_edges(conn) == 0observesprune_dominated_fuzzy_edges
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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-009 measured
- REQ-DDB-QUERY-003 inferred