passed Passed in the packaged run.
What this test is for Why it exists
The test says nothing about why.
→ When
reason = derive_scope(tmp_path).reason_write(tmp_path, _GUARD)reason = derive_scope(tmp_path).reason→ Then
✓ reason contains f"no {CONFIG_FILE_NAME} was found"✓ reason contains "exists but carries no index_scope"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.
… 10 earlier steps
command-line usercommand-line user command-line usercommand-line user clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py other filesother files other filesother files alt (line 1171) alt opt (line 529) opt main 11. propose → build_context 11 build_context 12. build_context → derive_scope 12 derive_scope 13. derive_scope → _declared_index_scope 13 _declared_index_scope ▶ test enters 14. _declared_index_scope → load_declaration_located 14 load_declaration_located 15–18. load_declaration_located → _read_mapping 15 _read_mapping +3 more 19–20. _checked_section → _checked_list_section 19 _checked_list_section +1 more … 2 steps between
command-line usercommand-line user command-line usercommand-line user other filesother files other filesother files opt (line 531) opt opt (line 445) opt loop (line 417) loop opt (line 420) opt alt (line 421) alt opt (line 533) opt main 23–24. all → list 23 list +1 more 25–26. _checked_section → _checked_requirements 25 _checked_requirements +1 more 27–29. _validate_node → _validate_map_of 27 _validate_map_of +2 more 30–31. _validate_node → _validate_dict_node 30 _validate_dict_node +1 more 32. _validate_dict_node → _suggest_key 32 _suggest_key 33. _validate_dict_node → _validate_node 33 _validate_node 34–35. _checked_section → _checked_tests 34 _checked_tests +1 more … 8 steps between
command-line usercommand-line user command-line usercommand-line user command-line user clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py clew/scope.py other filesother files other filesother files other files opt (line 696) opt try (line 1003) try opt (line 847) opt loop (line 746) loop loop (line 1055) loop opt (line 1075) opt loop (line 1117) loop main 44. _declared_index_scope → _existing_paths 44 _existing_paths 45. derive_scope → whole_repo_scope 45 whole_repo_scope 46. whole_repo_scope → _gitignored_paths 46 _gitignored_paths 47. _gitignored_paths → git_argv 47 git_argv 48–49. git_argv → _no_ext_diff 48 _no_ext_diff +1 more 50. _gitignored_paths → git_env 50 git_env 51. whole_repo_scope → list 51 list 52–56. whole_repo_scope → nested_repo_roots 52 nested_repo_roots +4 more 57. nested_repo_roots → _nested_repos_under 57 _nested_repos_under 58. whole_repo_scope → _gitignored_paths 58 _gitignored_paths 59–60. whole_repo_scope → _pruned_dirs 59 _pruned_dirs +1 more 61. _pruned_dirs → _skip_dir 61 _skip_dir 62. _pruned_dirs → _descendable 62 _descendable 63–64. _descendable → _is_within 63 _is_within +1 more 65–68. whole_repo_scope → _declaration_note 65 _declaration_note +3 more 69. derive_scope → whole_repo_scope 69 whole_repo_scope ▶ test enters 70–71. build_context → repo_source_files 70 repo_source_files +1 more … 329 later steps
4 more tests/test_guard_config_index.py:109 · its file's page
What it checks (2) assert f"no {CONFIG_FILE_NAME} was found" in reason observes derive_scope via reason assert "exists but carries no index_scope" in reason observes derive_scope via reason Where the product reaches it main → propose_main → propose → build_context → derive_scope (flow) Call flow test_the_scope_fallback_names_where_it_looked→ derive_scope → _write 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.
Also reaches 3 requirements Its run touches their code; that is reach, not proof.