test_an_ambiguous_suffix_does_not_resolve_to_an_arbitrary_owner

Tests › tests/test_qualified_subject.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE BOUND ON THE MATCH, and the reason it is a suffix match and not a substring one. A suffix shared by two identities names neither, and answering it would be the arbitrary pick reported as the answer that this module's `also` field exists to prevent.

Given

  1. —
→

When

  1. _split_qualified(namespaced, "::monitor_loop")
→

Then

  1. ✓ _split_qualified(namespaced, "::monitor_loop") is None

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

… 45 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.pyother filesother filesother filesother filesdossier46. _ambiguity_counts → table_exists46table_exists47. _ambiguity_counts → function_candidates47function_candidates48–51. function_candidates → table_exists48table_exists +3 more52–53. matching_identity → qualified_name_of52qualified_name_of +1 more54. resolve_selector → _ends_at_boundary54_ends_at_boundary55. matching_identity → qualified_name_of55qualified_name_of56. _flatten_subject → _gate_definitions56_gate_definitions

… 78 steps between

callercallercallercallerclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyopt (line 1012)optalt (line 780)altdossier135. dossier → connect135connect136. dossier → identity_rowids136identity_rowids137–139. identity_rowids → function_candidates137function_candidates +2 more140–141. identity_rowids → qualified_name_of140qualified_name_of +1 more

… 11 steps between

callercallercallercallerclew/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/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyopt (line 1021)optloop (line 1218)loopopt (line 1078)optdossier153–154. dossier → _qualified_reread153_qualified_reread +1 more155. _split_qualified → bare_tail155bare_tail▶ test enters156. _split_qualified → connect156connect157. _split_qualified → identity_rowids157identity_rowids158. _split_qualified → _qualified_suffix_matches158_qualified_suffix_matches159. _qualified_suffix_matches → table_exists159table_exists160. _qualified_suffix_matches → qualified_name_of160qualified_name_of161–162. _qualified_reread → _rank_enum_over_mirror161_rank_enum_over_mirror +1 more

… 64 later steps

1 more

tests/test_qualified_subject.py:301 · its file's page

What it checks (1)

  1. assert _split_qualified(namespaced, "::monitor_loop") is None, ( "a suffix matching both identities must not resolve to whichever sorted first" ) observes _split_qualified

Where the product reaches it

  • dossier → _qualified_reread → _split_qualified (flow)

Call flow

test_an_ambiguous_suffix_does_not_resolve_to_an_arbitrary_owner→_split_qualified

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_an_ambiguous_suffix_does_not_resolve_to_an_arbitrary_owner · 1 checks_split_qualifiedconnectREQ-DDB-QUERY-001 · measured_split_qualifiedidentity_rowidsREQ-DDB-QUERY-003 · measured_split_qualifiedidentity_rowidsREQ-DDB-QUERY-010 · measured_split_qualifiedbare_tailREQ-DDB-QUERY-013 · measured
Also reaches 4 requirements

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