passed Passed in the packaged run.
What this test is for Why it exists
The test says nothing about why.
Given
root = self._tree(tmp_path)monkeypatch.chdir(root)→ When
config = deep_merge(CONFIG_DEFAULTS, {"validate": {"exclude": ["tests/"]}})contract = build_files_contract(["."], config)→ Then
✓ any("a.c" in f for f in contract["files"]) holds✓ any("test_a.c" in f for f in contract["files"]) is falseWhat 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.
… 42 earlier steps
program launcherprogram launcher program launcherprogram launcher clew/guard/main.pyclew/guard/main.py clew/guard/main.pyclew/guard/main.py clew/guard/config.pyclew/guard/config.py clew/guard/config.pyclew/guard/config.py loop (line 651) loop opt (line 653) opt opt (line 733) opt main 43–44. load_config → apply_opt_in_languages 43 apply_opt_in_languages +1 more 45. deep_merge → deep_merge 45 deep_merge 46. load_config → deep_merge 46 deep_merge 47. _run → run_precommit 47 run_precommit … 18 steps between
program launcherprogram launcher program launcherprogram launcher other filesother files other filesother files opt (line 1336) opt alt (line 1344) alt main 66–67. read_catalog_at → git_text 66 git_text +1 more 68–69. git_argv → _no_ext_diff 68 _no_ext_diff +1 more 70–71. read_catalog_at → _refuse_url 70 _refuse_url +1 more … 9 steps between
program launcherprogram launcher program launcherprogram launcher clew/guard/main.pyclew/guard/main.py clew/guard/main.pyclew/guard/main.py clew/guard/config.pyclew/guard/config.py clew/guard/config.pyclew/guard/config.py other filesother files other filesother files loop (line 69) loop opt (line 178) opt main 81. validate_file → get_validate 81 get_validate 82. validate_file → excluded_by 82 excluded_by 83–84. excluded_by → compile_globs 83 compile_globs +1 more 85. validate_file → gate_exclusion 85 gate_exclusion 86–87. gate_exclusion → _gate_matcher 86 _gate_matcher +1 more 88–89. load_toolchain_config → _read_toml 88 _read_toml +1 more … 8 steps between
program launcherprogram launcher program launcherprogram launcher clew/guard/main.pyclew/guard/main.py clew/guard/main.pyclew/guard/main.py clew/guard/config.pyclew/guard/config.py clew/guard/config.pyclew/guard/config.py other filesother files other filesother files opt (line 184) opt loop (line 186) loop opt (line 189) opt opt (line 98) opt main 98–99. load_toolchain_config → _entry_globs 98 _entry_globs +1 more 100. _gate_matcher → compile_globs 100 compile_globs 101. gate_exclusion → matches 101 matches 102. gate_exclusion → binary_file 102 binary_file 103. validate_file → parse_source_file 103 parse_source_file 104. parse_source_file → parse_source_file_with_content 104 parse_source_file_with_content … 193 steps between
program launcherprogram launcher program launcherprogram launcher clew/guard/config.pyclew/guard/config.py clew/guard/config.pyclew/guard/config.py clew/guard/coverage.pyclew/guard/coverage.py clew/guard/coverage.pyclew/guard/coverage.py other filesother files other filesother files loop (line 179) loop loop (line 182) loop main 298. analyze_coverage → collect_tagged_functions 298 collect_tagged_functions 299. collect_tagged_functions → find_source_files 299 find_source_files 300. find_source_files → get_validate 300 get_validate ▶ test enters 301–306. find_source_files → _git_ls_files 301 _git_ls_files +5 more 307. collect_tagged_functions → _process_source_file 307 _process_source_file 308. _process_source_file → parse_source_file_with_content 308 parse_source_file_with_content … 49 later steps
4 more tests/guard/test_guard_contract.py:105 · its file's page
What it checks (2) assert any("a.c" in f for f in contract["files"]) observes build_files_contract via contract assert not any("test_a.c" in f for f in contract["files"]) observes build_files_contract via contract Where the product reaches it main → _run → _dispatch_subcommand → _run_files_command → build_files_contract (flow) main → _run → load_config → deep_merge (flow) 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 6 requirements Its run touches their code; that is reach, not proof.