test_a_signature_cannot_select_an_identity¶
Tests › tests/test_served_selector_contract.py
What this test is for
Why it exists
THE PREMISE OF EVERY OTHER TEST HERE, asserted rather than assumed. If this starts failing because the accessor grew a signature fallback, then the served wording was never a defect and the rest of this file is measuring nothing — delete it rather than keeping it green.
Given
cands = [(1, _DEFINITION)]
When
qualified_name_of(_NAME, _DEFINITION)matching_identity(_NAME, cands, _QUALIFIED)matching_identity(_NAME, cands, _DEFINITION)
Then
- ✓ qualified_name_of(_NAME, _DEFINITION) equals _QUALIFIED
- ✓ matching_identity(_NAME, cands, _QUALIFIED) holds
- ✓ matching_identity(_NAME, cands, _DEFINITION) is false
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
Build this wiki from the index · 4 of 400 steps
… 173 earlier steps
… 219 later steps
1 more
- Look up one name: everything the index holds about it · 4 of 226 steps
tests/test_served_selector_contract.py:63 · its file's page
What it checks (3)
assert qualified_name_of(_NAME, _DEFINITION) == _QUALIFIEDobservesqualified_name_ofassert matching_identity(_NAME, cands, _QUALIFIED), "the qualified name must select the row"observesmatching_identityassert not matching_identity(_NAME, cands, _DEFINITION), ( "a signature now selects an identity, so the premise of this file no longer holds" )observesmatching_identity
Where the product reaches it
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-QUERY-003 measured
- REQ-DDB-QUERY-010 measured