test_a_qualified_subject_is_told_to_split_it

Tests › tests/test_recovery_hint.py

passed Passed in the packaged run.

What this test is for

Why it exists

51 of 54 such subjects had a resolvable bare tail. The served text does say to keep `subject` bare; the model did not, and the miss reply never mentioned it.

Given

  1. —
→

When

  1. hint = recovery_hint(index, QUALIFIED)
→

Then

  1. ✓ hint contains 'subject="execute"'
  2. ✓ hint contains f'qualified="{QUALIFIED}"'

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 · 6 of 226 steps

… 6 earlier steps

callercallercallercallerclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyother filesother filesother filesother filestry (line 266)tryopt (line 296)optdossier7. _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_exists

… 208 later steps

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

What it checks (2)

  1. assert 'subject="execute"' in hint, f"the hint did not name the bare tail: {hint!r}" observes recovery_hint via hint
  2. assert f'qualified="{QUALIFIED}"' in hint, f"the hint did not name the selector: {hint!r}" observes recovery_hint via hint

Where the product reaches it

  • dossier → _batched_dossiers → batch_payload → recovery_hint (flow)

Call flow

test_a_qualified_subject_is_told_to_split_it→recovery_hint

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_qualified_subject_is_told_to_split_it · 2 checksrecovery_hintconnectREQ-DDB-QUERY-001 · measuredrecovery_hint_hint_from_indexed_pathtable_existsREQ-DDB-QUERY-003 · measuredrecovery_hintREQ-DDB-QUERY-013 · measured
Also reaches 3 requirements

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