test_verdict_log_names_every_exemption¶
Tests › tests/test_dominated_edges.py
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
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
with caplog.at_level("INFO", logger="clew"): prune_dominated_fuzzy_edges(conn)message = caplog.text
Then
- ✓ message contains "deleted 1 fan-out row"
- ✓ message contains "same-identity"
- ✓ message contains "override"
- ✓ message contains "unanchored"
tests/test_dominated_edges.py:351 · its file's page
What it checks (4)
assert "deleted 1 fan-out row" in messagenot attributedassert "same-identity" in messagenot attributedassert "override" in messagenot attributedassert "unanchored" in messagenot 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
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