test_fabricated_fanout_row_is_deleted

Tests › tests/test_dominated_edges.py

passed Passed in the packaged run.

What this test is for

Why it exists

The core gh#26 claim, asserted as an ABSENCE. doxygen resolved the call to `call_edges._table_exists`; the `ast` layer additionally fanned it out to the two namesakes in other modules, which cannot see a module-private helper.

Given

  1. conn = _index( _HELPERS, [ (10, 11, CALL_SOURCE_DOXYGEN_SQLITE, CALL_MATCH_EXACT), (10, 11, CALL_SOURCE_AST, CALL_MATCH_FUZZY), (10, 12, CALL_SOURCE_AST, CALL_MATCH_FUZZY), (10, 13, CALL_SOURCE_AST, CALL_MATCH_FUZZY), ], )
→

When

  1. prune_dominated_fuzzy_edges(conn)
→

Then

  1. ✓ prune_dominated_fuzzy_edges(conn) equals 2
  2. ✓ _rows(conn) equals [ (10, 11, CALL_SOURCE_AST), (10, 11, CALL_SOURCE_DOXYGEN_SQLITE), ]

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

What it checks (2)

  1. assert prune_dominated_fuzzy_edges(conn) == 2 observes prune_dominated_fuzzy_edges
  2. assert _rows(conn) == [ (10, 11, CALL_SOURCE_AST), (10, 11, CALL_SOURCE_DOXYGEN_SQLITE), ] observes _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

test_fabricated_fanout_row_is_deleted→_index→prune_dominated_fuzzy_edges→_rows

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

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