test_out_of_line_member_definition_still_resolves_its_class

Tests › tests/test_locks.py

passed Passed in the packaged run.

What this test is for

Why it exists

`void LinkOwner::tx_loop() {...}` has NO enclosing class_specifier, so the class must come from the qualified function name. Reading only the enclosing class node left 25 of a C++ codebase's 33 acquisitions scope-unknown.

Given

  1. scopes = {s[1]: s[2] for s in _sites(_CPP)}
→

When

  1. —
→

Then

  1. ✓ scopes["tx_mutex_"] equals "class:LinkOwner"

tests/test_locks.py:97 · its file's page

What it checks (1)

  1. assert scopes["tx_mutex_"] == "class:LinkOwner" observes _sites via scopes

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_out_of_line_member_definition_still_resolves_its_class→_sites

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_out_of_line_member_definition_still_resolves_its_class · 1 checks_sites… 4 calls …enclosingREQ-DDB-PIPE-003 · measured_sites… 4 calls …resolve_sectionREQ-DDB-SCHEMA-011 · measured
Also reaches 2 requirements

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