test_an_unnamed_operand_yields_no_section

Tests › tests/test_critical_sections.py

passed Passed in the packaged run.

What this test is for

Why it exists

Without an operand there is no lock identity to attribute membership to, and L1 already refuses to create a lock row for one. L2 must agree rather than recording calls under a section belonging to nothing.

Given

  1. —
→

When

  1. section = resolve_section(_rootless_node(), b"int x;", None, "")
→

Then

  1. ✓ section.end_line is None
  2. ✓ section.calls equals []
  3. ✓ section.confidence equals EXTENT_UNRESOLVED

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

What it checks (3)

  1. assert section.end_line is None observes resolve_section via section
  2. assert section.calls == [] observes resolve_section via section
  3. assert section.confidence == EXTENT_UNRESOLVED observes resolve_section via section

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_unnamed_operand_yields_no_section→resolve_section→_rootless_node

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_unnamed_operand_yields_no_section · 3 checksresolve_sectionenclosingREQ-DDB-PIPE-003 · measuredresolve_sectionREQ-DDB-SCHEMA-011 · measured
Also reaches 2 requirements

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