test_a_callee_with_no_memberdef_is_external_not_fuzzy¶
Tests › tests/test_critical_sections.py
What this test is for
Why it exists
The majority case: a critical section is full of stdlib, vendor and macro calls that have no memberdef at all. Filing those under `call_match`'s nearest member ('fuzzy') would claim an in-repo callee was ambiguous when there was never a candidate to be ambiguous between.
Given
conn = _section_db()
When
insert_section_calls(conn, 1, [["memcpy", 4]], {})
Then
- ✓ conn.execute("SELECT resolution FROM critical_section_calls").fetchone() equals ( SECTION_MATCH_EXTERNAL, )
tests/test_critical_sections.py:345 · its file's page
What it checks (1)
assert conn.execute("SELECT resolution FROM critical_section_calls").fetchone() == ( SECTION_MATCH_EXTERNAL, )observes_section_dbviaconn
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
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.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-SCHEMA-011 measured
- REQ-DDB-SCHEMA-012 measured