test_schema_without_definition_column_deletes_nothing

Tests › tests/test_dominated_edges.py

passed Passed in the packaged run.

What this test is for

Why it exists

Fail CLOSED on a thin schema. Without `definition` every namesake collapses to one identity, so no group has a non-anchor member and a destructive stage removes nothing — the right direction for a pass that cannot tell namesakes apart. Several fixtures elsewhere hand-build a `memberdef` with only the columns their own assertion needs, and a bare `SELECT definition` would raise at them from a layer they are not exercising.

Given

  1. conn = sqlite3.connect(":memory:")
  2. conn.execute("CREATE TABLE memberdef (rowid INTEGER PRIMARY KEY, name TEXT)")
3 more
  1. conn.execute( "CREATE TABLE call_edges (caller_rowid INTEGER, callee_rowid INTEGER, " "source TEXT, confidence TEXT)" )
  2. conn.executemany( "INSERT INTO memberdef VALUES (?, ?)", [(10, "caller"), (11, "_table_exists"), (12, "_table_exists")], )
  3. conn.executemany( "INSERT INTO call_edges VALUES (?, ?, ?, ?)", [ (10, 11, CALL_SOURCE_DOXYGEN_SQLITE, CALL_MATCH_EXACT), (10, 12, CALL_SOURCE_AST, CALL_MATCH_FUZZY), ], )
→

When

  1. prune_dominated_fuzzy_edges(conn)
→

Then

  1. ✓ prune_dominated_fuzzy_edges(conn) equals 0

tests/test_dominated_edges.py:307 · its file's page

What it checks (1)

  1. assert prune_dominated_fuzzy_edges(conn) == 0 observes prune_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

test_schema_without_definition_column_deletes_nothing→prune_dominated_fuzzy_edges

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_schema_without_definition_column_deletes_nothing · 1 checksprune_dominated_fuzzy_edgesREQ-DDB-PIPE-009 · measuredprune_dominated_fuzzy_edges_identity_indexqualified_name_ofREQ-DDB-QUERY-003 · inferred
Also reaches 2 requirements

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