test_the_generated_config_exceeds_a_pipe_buffer¶
Tests › tests/test_doxygen_pipes.py
What this test is for
Why it exists
THE PREMISE OF THE WHOLE BUG, PINNED. If the config were always small the write-then-read ordering would have been harmless, and someone reading the fix later would reasonably ask why the extra thread exists. It exists because this number is bigger than 64 KiB.
Given
doxyfile = tmp_path / "Doxyfile"doxyfile.write_text("PROJECT_NAME = t\nINPUT =\n", encoding="utf-8")files = [str(tmp_path / f"src/mod_{i}/file_{i}.c") for i in range(4000)]
When
content = dox._build_doxyfile_content(doxyfile, files, [], True, tmp_path / "out", "")
Then
- ✓ len(content) is greater than 65536
tests/test_doxygen_pipes.py:42 · its file's page
What it checks (1)
assert len(content) > 65536, ( f"the generated config is only {len(content)} bytes, so this test no longer demonstrates " f"the condition the writer thread exists for. If INPUT stopped being written explicitly, " f"re-justify the thread rather than deleting this test." )observes_build_doxyfile_contentviacontent
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-INDEX-001 measured
- REQ-DDB-PIPE-003 measured