test_the_override_surface_is_reachable_from_the_package

Tests › tests/test_overrides.py

passed Passed in the packaged run.

What this test is for

Why it exists

Exported, because "populated and unreachable" was the whole defect.

Given

  1. conn = sqlite3.connect(overriding_db)
→

When

  1. try: assert {o.name for o in q.overridden_by(conn, "sensor_poll")} == { "telemetry_report", "handle_cloud_command", } assert q.overrides_of(conn, "sensor_poll") == [] finally: conn.close()
→

Then

  1. ✓ q.__all__ contains "overrides_of"
  2. ✓ q.__all__ contains "overridden_by"
  3. ✓ q.__all__ contains "OverrideRef"

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 · 7 of 400 steps

… 168 earlier steps

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesopt (line 201)optbuild_wiki169. derive_flow → _entry_rowids169_entry_rowids170. _entry_rowids → identity_rowids170identity_rowids171. identity_rowids → function_candidates171function_candidates▶ test enters172–175. function_candidates → table_exists172table_exists +3 more176–177. matching_identity → qualified_name_of176qualified_name_of +1 more

… 2 steps between

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesopt (line 777)optalt (line 780)altopt (line 203)optbuild_wiki180–181. identity_rowids → qualified_name_of180qualified_name_of +1 more182. identity_rowids → qualified_name_of182qualified_name_of▶ test enters183. identity_rowids → qualified_name_of183qualified_name_of184. _entry_rowids → function_candidates184function_candidates185. _entry_rowids → qualified_name_of185qualified_name_of

… 215 later steps

1 more

tests/test_overrides.py:241 · its file's page

What it checks (5)

  1. assert "overrides_of" in q.__all__ not attributed
  2. assert "overridden_by" in q.__all__ not attributed
  3. assert "OverrideRef" in q.__all__ not attributed
  4. assert {o.name for o in q.overridden_by(conn, "sensor_poll")} == { "telemetry_report", "handle_cloud_command", } observes overridden_by
  5. assert q.overrides_of(conn, "sensor_poll") == [] observes overrides_of

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

test_the_override_surface_is_reachable_from_the_package→overridden_by→overrides_of

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_override_surface_is_reachable_from_the_package · 5 checksoverridden_byREQ-DDB-QUERY-001 · measuredoverridden_by_override_refstable_existsREQ-DDB-QUERY-003 · measuredoverridden_byREQ-DDB-QUERY-009 · measuredoverridden_byREQ-DDB-QUERY-010 · measured
Also reaches 4 requirements

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