test_the_hinted_form_is_one_the_selector_accepts

Tests › tests/test_recovery_hint.py

passed Passed in the packaged run.

What this test is for

Why it exists

**THE SEAM THAT ALREADY FAILED ONCE.** The served parameter text used to advertise `signature` while the accessor took `qualified`, so obeying the documentation guaranteed a miss. A hint is documentation generated at runtime and can fail the same way, so this asserts the round trip rather than the wording: the string the hint names must select the row.

Given

  1. —
→

When

  1. hint = recovery_hint(index, "execute")
  2. named = next(part.strip("'\"") for part in hint.split() if QUALIFIED in part).strip("'\",.`")
  3. cands = [(10, f"void {QUALIFIED}")]
2 more
  1. qualified_name_of("execute", f"void {QUALIFIED}")
  2. matching_identity("execute", cands, named)
→

Then

  1. ✓ qualified_name_of("execute", f"void {QUALIFIED}") equals named
  2. ✓ matching_identity("execute", cands, named) holds

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.

Look up one name: everything the index holds about it · 14 of 226 steps

… 6 earlier steps

callercallercallercallercallerclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyother filesother filesother filesother filesother filestry (line 266)tryopt (line 296)optloop (line 154)loopdossier7. _batch_miss → _kind_limitation_clause7_kind_limitation_clause8. batch_payload → recovery_hint8recovery_hint9. recovery_hint → connect9connect▶ test enters10–11. recovery_hint → _hint_from10_hint_from +1 more12. _hint_from → _indexed_path12_indexed_path13. _indexed_path → table_exists13table_exists14–15. _hint_from → bare_tail14bare_tail +1 more16. _name_exists → table_exists16table_exists17. _hint_from → _documentation_mentions17_documentation_mentions18. _documentation_mentions → table_exists18table_exists19. _documentation_mentions → has_columns19has_columns20. has_columns → table_exists20table_exists21–22. _hint_from → _name_exists21_name_exists +1 more23. _qualified_forms → table_exists23table_exists24. _qualified_forms → qualified_name_of24qualified_name_of25. batch_payload → unresolved_kinds25unresolved_kinds26. unresolved_kinds → connect26connect

… 23 steps between

callercallercallercallerclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesloop (line 515)loopdossier50. _test_scope_term → table_exists50table_exists51. function_candidates → matching_identity51matching_identity52. matching_identity → qualified_name_of52qualified_name_of▶ test enters53. matching_identity → resolve_selector53resolve_selector54. resolve_selector → _ends_at_boundary54_ends_at_boundary55. matching_identity → qualified_name_of55qualified_name_of56. _flatten_subject → _gate_definitions56_gate_definitions57. _gate_definitions → macro_definitions57macro_definitions

… 169 later steps

1 more

tests/test_recovery_hint.py:120 · its file's page

What it checks (2)

  1. assert qualified_name_of("execute", f"void {QUALIFIED}") == named, ( f"the hint named {named!r}, which is not what qualified_name_of derives" ) observes qualified_name_of
  2. assert matching_identity("execute", cands, named), ( f"the hint named {named!r}, which the selector does not accept — the same seam that " f"shipped broken in the served parameter text" ) observes matching_identity

Where the product reaches it

  • dossier → identity_rowids → function_candidates → matching_identity (flow)
  • dossier → identity_rowids → qualified_name_of (flow)
  • dossier → _batched_dossiers → batch_payload → recovery_hint (flow)

Call flow

test_the_hinted_form_is_one_the_selector_accepts→recovery_hint→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_the_hinted_form_is_one_the_selector_accepts · 2 checksrecovery_hintconnectREQ-DDB-QUERY-001 · measuredqualified_name_ofREQ-DDB-QUERY-003 · measuredmatching_identityREQ-DDB-QUERY-010 · measuredrecovery_hintREQ-DDB-QUERY-013 · measured
Also reaches 4 requirements

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