test_a_name_that_is_two_subjects_reports_both

Tests › tests/test_subject_surface.py

passed Passed in the packaged run.

What this test is for

Why it exists

AN ARBITRARY PICK REPORTED AS THE ANSWER is this repo's own recorded failure, one level up: three unrelated `_classify` functions collapsed into one node and the dossier listed the union of their neighbours at `confidence: exact`. The classifier refuses to repeat it — a name that is several things says so.

Given

  1. —
→

When

  1. kinds = q.resolve_subject(rich_db, DM_MUTEX)
→

Then

  1. ✓ set(kinds) is at least {"lock", "variable"}
  2. ✓ kinds[0] equals "lock"

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

… 17 earlier steps

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pydossier18. _documentation_mentions → table_exists18table_exists19. _documentation_mentions → has_columns19has_columns20. has_columns → table_exists20table_exists21–22. _hint_from → _name_exists21_name_exists +1 more

… 23 steps between

callercallercallercallerclew/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. function_candidates → table_exists48table_exists▶ test enters49–51. function_candidates → _test_scope_term49_test_scope_term +2 more52–53. matching_identity → qualified_name_of52qualified_name_of +1 more

… 4 steps between

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesdossier58. macro_definitions → connect58connect59. macro_definitions → macro_definitions_conn59macro_definitions_conn60. macro_definitions_conn → has_columns60has_columns▶ test enters61. macro_definitions_conn → _macro_def61_macro_def62. _macro_def → gates_covering62gates_covering63. gates_covering → table_exists63table_exists

… 86 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.pyother filesother filesother filesother filesopt (line 1021)optdossier150. _class_side_is_only_enum_mirrors → all150all151. dossier → resolve_subject151resolve_subject152. resolve_subject → connect152connect▶ test enters153–154. dossier → _qualified_reread153_qualified_reread +1 more

… 72 later steps

3 more

tests/test_subject_surface.py:108 · its file's page

What it checks (2)

  1. assert set(kinds) >= {"lock", "variable"}, kinds observes resolve_subject via kinds
  2. assert kinds[0] == "lock" observes resolve_subject via kinds

Where the product reaches it

  • dossier → resolve_subject (flow)

Call flow

test_a_name_that_is_two_subjects_reports_both→resolve_subject

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_name_that_is_two_subjects_reports_both · 2 checksresolve_subjectconnectREQ-DDB-QUERY-001 · measured
Also reaches 5 requirements

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