test_a_signature_cannot_select_an_identity

Tests › tests/test_served_selector_contract.py

passed Passed in the packaged run.

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

  1. cands = [(1, _DEFINITION)]
→

When

  1. qualified_name_of(_NAME, _DEFINITION)
  2. matching_identity(_NAME, cands, _QUALIFIED)
  3. matching_identity(_NAME, cands, _DEFINITION)
→

Then

  1. ✓ qualified_name_of(_NAME, _DEFINITION) equals _QUALIFIED
  2. ✓ matching_identity(_NAME, cands, _QUALIFIED) holds
  3. ✓ 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

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyopt (line 777)optbuild_wiki174. _test_scope_term → table_exists174table_exists175. function_candidates → matching_identity175matching_identity176. matching_identity → qualified_name_of176qualified_name_of▶ test enters177–179. matching_identity → resolve_selector177resolve_selector +2 more180–181. identity_rowids → qualified_name_of180qualified_name_of +1 more

… 219 later steps

1 more

tests/test_served_selector_contract.py:63 · its file's page

What it checks (3)

  1. assert qualified_name_of(_NAME, _DEFINITION) == _QUALIFIED observes qualified_name_of
  2. assert matching_identity(_NAME, cands, _QUALIFIED), "the qualified name must select the row" observes matching_identity
  3. assert not matching_identity(_NAME, cands, _DEFINITION), ( "a signature now selects an identity, so the premise of this file no longer holds" ) observes matching_identity

Where the product reaches it

  • dossier → identity_rowids → function_candidates → matching_identity (flow)
  • dossier → identity_rowids → qualified_name_of (flow)

Call flow

test_a_signature_cannot_select_an_identity→qualified_name_of→matching_identity

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_a_signature_cannot_select_an_identity · 3 checksqualified_name_ofREQ-DDB-QUERY-003 · measuredmatching_identityREQ-DDB-QUERY-010 · measured
Also reaches 2 requirements

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