test_an_in_tree_doxyfile_declaration_is_the_doxyfile

Tests › tests/test_declared_doxyfile.py

passed Passed in the packaged run.

What this test is for

Why it exists

F3: the declared file is used, not discovery, and a tier-1 statement still wins.

Given

  1. (tmp_path / "doxygen").mkdir()
  2. declared = tmp_path / "doxygen" / "project.doxyfile"
3 more
  1. declared.write_text("INPUT = src\n", encoding="utf-8")
  2. (tmp_path / "Doxyfile").write_text("INPUT = .\n", encoding="utf-8")
  3. flag = tmp_path / "Doxyfile"
→

When

  1. —
→

Then

  1. ✓ _resolve(tmp_path, "doxyfile: doxygen/project.doxyfile\n") equals declared.resolve()
  2. ✓ _resolve(tmp_path, "doxyfile: doxygen/project.doxyfile\n", str(flag)) equals flag.resolve()

What it exercises

The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.

thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 5 of 142 steps

… 99 earlier steps

thread startthread startthread startthread startclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyother filesother filesother filesother filesalt (line 1171)altopt (line 529)opt_first_build_worker100. declared_scope_rejection → _declared_index_scope100_declared_index_scope101. _declared_index_scope → load_declaration_located101load_declaration_located102–105. load_declaration_located → _read_mapping102_read_mapping +3 more106. _checked_section → _checked_list_section106_checked_list_section107. _checked_list_section → all107all

… 27 steps between

thread startthread startthread startthread startclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyother filesother filesother filesother filescatch (line 3328)catch_first_build_worker135. _sub_index_scope → declared_sub_index_excludes135declared_sub_index_excludes136. declared_sub_index_excludes → load_declaration136load_declaration137. load_declaration → load_declaration_located137load_declaration_located▶ test enters138. _run_build_walked → _bounded_output138_bounded_output139. _bounded_output → all139all

… 3 later steps

2 more

tests/test_declared_doxyfile.py:39 · its file's page

What it checks (2)

  1. assert _resolve(tmp_path, "doxyfile: doxygen/project.doxyfile\n") == declared.resolve() observes _resolve
  2. assert _resolve(tmp_path, "doxyfile: doxygen/project.doxyfile\n", str(flag)) == flag.resolve() observes _resolve

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_an_in_tree_doxyfile_declaration_is_the_doxyfile→_resolve

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_an_in_tree_doxyfile_declaration_is_the_doxyfile · 2 checks_resolve_resolve_doxyfile_and_rootderive_scopeREQ-DDB-CONFIG-001 · measured_resolve… 7 calls …_validate_nodeREQ-DDB-GUARD-012 · inferred_resolve_resolve_doxyfile_and_rootdiscover_doxyfileREQ-DDB-INDEX-001 · inferred_resolve_resolve_doxyfile_and_root_declared_doxyfilewithin_repoREQ-DDB-PIPE-014 · measured_resolve… 7 calls …allREQ-DDB-WIKI-054 · inferred
Also reaches 5 requirements

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