test_verdict_log_names_every_exemption

Tests › tests/test_dominated_edges.py

passed Passed in the packaged run.

What this test is for

Why it exists

A silent exemption is indistinguishable from one that never fires, and both exemptions here exist because the version without them was wrong. The log has to let a reader see that they fired.

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), ], )
→

When

  1. with caplog.at_level("INFO", logger="clew"): prune_dominated_fuzzy_edges(conn)
  2. message = caplog.text
→

Then

  1. ✓ message contains "deleted 1 fan-out row"
  2. ✓ message contains "same-identity"
  3. ✓ message contains "override"
  4. ✓ message contains "unanchored"

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

What it checks (4)

  1. assert "deleted 1 fan-out row" in message not attributed
  2. assert "same-identity" in message not attributed
  3. assert "override" in message not attributed
  4. assert "unanchored" in message 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_verdict_log_names_every_exemption→_index→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_verdict_log_names_every_exemption · 4 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.