test_same_identity_row_is_kept¶
Tests › tests/test_dominated_edges.py
What this test is for
Why it exists
Same function, weaker layer: the row names the relationship the anchor already names, so it is not a fan-out artefact. An earlier draft deleted them as redundant duplicates, which removes real rows while the row count looks healthier.
Given
conn = _index( [*_HELPERS, (14, "_table_exists", "bool pkg.call_edges._table_exists")], [ (10, 11, CALL_SOURCE_DOXYGEN_SQLITE, CALL_MATCH_EXACT), (10, 11, CALL_SOURCE_AST, CALL_MATCH_FUZZY), (10, 14, CALL_SOURCE_AST, CALL_MATCH_FUZZY), ], )
When
prune_dominated_fuzzy_edges(conn)
Then
- ✓ prune_dominated_fuzzy_edges(conn) equals 0
- ✓ len(_rows(conn)) equals 3
tests/test_dominated_edges.py:201 · its file's page
What it checks (2)
assert prune_dominated_fuzzy_edges(conn) == 0observesprune_dominated_fuzzy_edgesassert len(_rows(conn)) == 3observes_rows
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 measured