test_the_index_reads_tests_paths

Tests › tests/test_tests_section.py

passed Passed in the packaged run.

What this test is for

Why it exists

`tests.paths` is the index's test scope.

Given

  1. root = _write(tmp_path, "tests:\n paths: ['unittests/*']\n junit: [build/junit.xml]\n")
→

When

  1. args = _build_argparser().parse_args(["--output", str(tmp_path / "x.db")])
  2. _test_paths(args, load_declaration(root))
  3. load_declaration(root)
→

Then

  1. ✓ _test_paths(args, load_declaration(root)).values contains "unittests/*"

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) · 9 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)optloop (line 135)loop_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 → all107all108–109. all → _events108_events +1 more

… 9 steps between

thread startthread startthread startthread startclew/declaration.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyother filesother filesother filesother filesloop (line 417)loopalt (line 421)altopt (line 533)optopt (line 547)opttry (line 548)try_first_build_worker119. _suggest_key → list119list120. _validate_dict_node → _validate_node120_validate_node121–122. _checked_section → _checked_tests121_checked_tests +1 more123. _checked_tests → 123… 1 call not run124. _checked_section → check_manifest_document124check_manifest_document

… 1 step between

thread startthread startthread startthread startclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyclew/declaration.pyother filesother filesother filesother filesloop (line 598)loop_first_build_worker126–127. _checked_document → _checked_entries126_checked_entries +1 more128. _checked_section → _check_section_keys128_check_section_keys129–130. _declared_index_scope → _existing_paths129_existing_paths +1 more

… 4 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_tests_section.py:29 · its file's page

What it checks (1)

  1. assert "unittests/*" in _test_paths(args, load_declaration(root)).values observes _test_paths

Where the product reaches it

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

Call flow

test_the_index_reads_tests_paths→_write→_build_argparser→_test_paths→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_the_index_reads_tests_paths · 1 checksload_declarationREQ-DDB-CONFIG-001 · measured_test_pathsresolve_layeredREQ-DDB-CONFIG-006 · measuredload_declaration… 4 calls …_validate_nodeREQ-DDB-GUARD-012 · inferredload_declaration… 4 calls …allREQ-DDB-WIKI-054 · inferred
Also reaches 4 requirements

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