test_a_leftover_doxygen_guard_yaml_is_not_read

Tests › tests/test_guard_config_index.py

passed Passed in the packaged run.

What this test is for

Why it exists

HARD BREAK, pinned. A repo that has not moved its config runs on the defaults; a silent fallback to the old file would leave two configs that can disagree.

Given

  1. old = _GUARD.replace("guard:\n", "").replace("\n ", "\n")
  2. _write(tmp_path, old + "x-clew:\n index_scope:\n roots: [src]\n", ".doxygen-guard.yaml")
→

When

  1. load_guard_config(tmp_path)
  2. load_declaration(tmp_path)
→

Then

  1. ✓ load_guard_config(tmp_path) is None
  2. ✓ load_declaration(tmp_path) equals {}

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) · 2 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.pyalt (line 1171)altopt (line 485)opt_first_build_worker100. declared_scope_rejection → _declared_index_scope100_declared_index_scope101. _declared_index_scope → load_declaration_located101load_declaration_located102. load_declaration_located → _read_mapping102_read_mapping103. _read_mapping → _parsed_declaration103_parsed_declaration104. load_declaration_located → _checked_sections104_checked_sections

… 30 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_guard_config_index.py:126 · its file's page

What it checks (2)

  1. assert load_guard_config(tmp_path) is None observes load_guard_config
  2. assert load_declaration(tmp_path) == {} observes load_declaration

Where the product reaches it

  • main → propose_main → propose → build_context → load_declaration (flow)

Call flow

test_a_leftover_doxygen_guard_yaml_is_not_read→_write→load_guard_config→load_declaration

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_a_leftover_doxygen_guard_yaml_is_not_read · 2 checksload_declarationREQ-DDB-CONFIG-001 · measuredload_guard_configread_guard_configread_requirements_sectionREQ-DDB-GUARD-012 · inferredload_guard_configread_guard_configload_configapply_opt_in_languagesREQ-DDB-GUARD-024 · inferredload_declaration… 4 calls …allREQ-DDB-WIKI-054 · inferred
Also reaches 4 requirements

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