test_an_unvendored_repo_is_not_split

Tests › tests/integration/test_sub_index_build.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE COMPATIBILITY CASE. Every existing target must keep its slug and its database; a driver that split unconditionally would strand them all.

Given

  1. repo = tmp_path / "plain"
  2. (repo / "src").mkdir(parents=True)
2 more
  1. (repo / "src" / "main.c").write_text("int main(void){return 0;}\n", encoding="utf-8")
  2. (repo / "Doxyfile").write_text("PROJECT_NAME = plain\nINPUT = .\n", encoding="utf-8")
→

When

  1. with captured_output(): assert build_sub_indexes(repo, home=tmp_path / "state") == []
→

Then

  1. —

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) · 25 of 142 steps

thread startthread startthread startthread startthread startclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyother filesother filesother filesother filesother filestry (line 1664)trytry (line 1003)tryopt (line 847)optloop (line 746)looploop (line 1055)loopopt (line 1075)opt_first_build_worker1. _first_build_worker → first_party_sub_index1first_party_sub_index2. first_party_sub_index → whole_repo_scope2whole_repo_scope3. whole_repo_scope → _gitignored_paths3_gitignored_paths4. _gitignored_paths → git_argv4git_argv5–6. git_argv → _no_ext_diff5_no_ext_diff +1 more7. list → link7link8. _gitignored_paths → git_env8git_env9. whole_repo_scope → list9list10–14. whole_repo_scope → nested_repo_roots10nested_repo_roots +4 more15. nested_repo_roots → _nested_repos_under15_nested_repos_under16. whole_repo_scope → _gitignored_paths16_gitignored_paths17–18. whole_repo_scope → _pruned_dirs17_pruned_dirs +1 more19. _pruned_dirs → _skip_dir19_skip_dir20–22. _pruned_dirs → _descendable20_descendable +2 more23–26. whole_repo_scope → _declaration_note23_declaration_note +3 more27–28. first_party_sub_index → _under_any27_under_any +1 more

… 12 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.pyother filesother filesother filesother filesloop (line 205)loop_first_build_worker41. _sub_index_rejection → _buildable_sub_indexes41_buildable_sub_indexes42. _buildable_sub_indexes → derive_sub_indexes42derive_sub_indexes43. derive_sub_indexes → whole_repo_scope43whole_repo_scope▶ test enters44–46. derive_sub_indexes → _nested_trees_recursive44_nested_trees_recursive +2 more47. _nested_trees_recursive → list47list48–49. _nested_trees_recursive → _gitignored_paths48_gitignored_paths +1 more

… 93 later steps

4 more

tests/integration/test_sub_index_build.py:154 · its file's page

What it checks (1)

  1. assert build_sub_indexes(repo, home=tmp_path / "state") == [] observes build_sub_indexes

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_unvendored_repo_is_not_split→captured_output→build_sub_indexes

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_unvendored_repo_is_not_split · 1 checksbuild_sub_indexesderive_sub_indexeswhole_repo_scopeREQ-DDB-CONFIG-001 · measuredbuild_sub_indexesderive_sub_indexesREQ-DDB-INDEX-002 · measured
Also reaches 2 requirements

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