test_the_generated_config_exceeds_a_pipe_buffer

Tests › tests/test_doxygen_pipes.py

passed Passed in the packaged run.

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

  1. doxyfile = tmp_path / "Doxyfile"
  2. doxyfile.write_text("PROJECT_NAME = t\nINPUT =\n", encoding="utf-8")
  3. files = [str(tmp_path / f"src/mod_{i}/file_{i}.c") for i in range(4000)]
→

When

  1. content = dox._build_doxyfile_content(doxyfile, files, [], True, tmp_path / "out", "")
→

Then

  1. ✓ len(content) is greater than 65536

tests/test_doxygen_pipes.py:42 · its file's page

What it checks (1)

  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_content via content

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_the_generated_config_exceeds_a_pipe_buffer→_build_doxyfile_content

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_the_generated_config_exceeds_a_pipe_buffer · 1 checks_build_doxyfile_contentREQ-DDB-INDEX-001 · measured_build_doxyfile_contentextra_input_clears_excludeREQ-DDB-PIPE-003 · measured
Also reaches 2 requirements

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