test_code_text_doxygen_stored_verbatim_is_kept_and_structured

Tests › tests/test_wiki_apiref.py

passed Passed in the packaged run.

What this test is for

Why it exists

ENTROPIC'S AUDIT OF f6ff1f7c (23 entries, 83 of 1,482 include/ descriptions): doxygen stores code text verbatim inside its XML, so `(n_tokens < 2)` or `std::atomic<bool>` made the fragment unparseable. The entry fell back to one flat paragraph with no Parameters or Returns, and the fallback stripped `< 2)` AS A TAG — text lost silently.

Given

  1. xml = ( '<para><parameterlist kind="param"><parameteritem><parameternamelist>' "<parametername>n_tokens</parametername></parameternamelist><parameterdescription>" "<para>Count (fails when n_tokens < 2).</para></parameterdescription></parameteritem>" '</parameterlist><simplesect kind="return"><para>A std::atomic<bool> & a flag.</para>' "</simplesect></para>" )
→

When

  1. doc = parse_doc(xml)
→

Then

  1. ✓ doc.params equals (("n_tokens", "", "Count (fails when n_tokens < 2)."),)
  2. ✓ doc.returns equals ("A std::atomic<bool> & a flag.",)

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

What it checks (2)

  1. assert doc.params == (("n_tokens", "", "Count (fails when n_tokens < 2)."),) observes parse_doc via doc
  2. assert doc.returns == ("A std::atomic<bool> & a flag.",) observes parse_doc via doc

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_code_text_doxygen_stored_verbatim_is_kept_and_structured→parse_doc

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_code_text_doxygen_stored_verbatim_is_kept_and_structured · 2 checksparse_docdoc_textstrip_xmlREQ-DDB-QUERY-003 · inferredparse_docREQ-DDB-WIKI-053 · measured
Also reaches 2 requirements

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