test_an_absent_bare_flag_reads_as_MEMBER_ish

Tests › tests/test_critical_sections.py

passed Passed in the packaged run.

What this test is for

Why it exists

Fail closed on the old payload shape. A 2-element call predates the flag, and guessing `bare=True` for it would restore exactly the defect above on any un-migrated path. The build-version bump wipes cached payloads, so this is a belt-and-braces default rather than a live code path — which is the point: the conservative reading costs a resolution that can be recovered, the optimistic one invents a lock nesting that cannot be detected.

Given

  1. conn = _section_db()
→

When

  1. insert_section_calls(conn, 1, [["tap_record", 251]], {"tap_record": [42]})
→

Then

  1. ✓ conn.execute("SELECT resolution FROM critical_section_calls").fetchone() equals ( SECTION_MATCH_RECEIVER_UNVERIFIED, )

tests/test_critical_sections.py:407 · its file's page

What it checks (1)

  1. assert conn.execute("SELECT resolution FROM critical_section_calls").fetchone() == ( SECTION_MATCH_RECEIVER_UNVERIFIED, ) observes _section_db via conn

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_an_absent_bare_flag_reads_as_MEMBER_ish→_section_db→insert_section_calls

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_absent_bare_flag_reads_as_MEMBER_ish · 1 checksinsert_section_callsREQ-DDB-SCHEMA-011 · measured
Also reaches 2 requirements

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