test_only_declared_public_headers_are_read

Tests › tests/test_wiki_apiref.py

passed Passed in the packaged run.

What this test is for

Why it exists

`include/**` holds the API; `src/impl.cpp` does not, whatever it defines.

Given

  1. —
→

When

  1. headers = header_symbols(_conn(), ("include/**",))
  2. list(headers)
  3. names = {s.name for s in headers["include/demo/api.h"]}
→

Then

  1. ✓ list(headers) equals ["include/demo/api.h"]
  2. ✓ names does not contain "impl_only"

tests/test_wiki_apiref.py:54 · its file's page

What it checks (2)

  1. assert list(headers) == ["include/demo/api.h"] observes list
  2. assert "impl_only" not in names not attributed

Where the product reaches it

  • dossier → subject_payload → _flatten_subject → list (flow)

Call flow

test_only_declared_public_headers_are_read→header_symbols→_conn→list

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_only_declared_public_headers_are_read · 2 checksheader_symbolsdoc_textstrip_xmlREQ-DDB-QUERY-003 · inferredheader_symbolsREQ-DDB-WIKI-053 · measured
Also reaches 2 requirements

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