test_only_declared_public_headers_are_read¶
Tests › tests/test_wiki_apiref.py
What this test is for
Why it exists
`include/**` holds the API; `src/impl.cpp` does not, whatever it defines.
Given
- —
When
headers = header_symbols(_conn(), ("include/**",))list(headers)names = {s.name for s in headers["include/demo/api.h"]}
Then
- ✓ list(headers) equals ["include/demo/api.h"]
- ✓ names does not contain "impl_only"
tests/test_wiki_apiref.py:54 · its file's page
What it checks (2)
assert list(headers) == ["include/demo/api.h"]observeslistassert "impl_only" not in namesnot attributed
Where the product reaches it
dossier→subject_payload→_flatten_subject→list(flow)
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-QUERY-003 inferred
- REQ-DDB-WIKI-053 measured