MCPcopy Index your code
hub / github.com/idank/explainshell / test_missing_section_handled

Function test_missing_section_handled

tests/test_postprocess_ubuntu_archive.py:208–219  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

206
207
208def test_missing_section_handled(tmp_path: Path) -> None:
209 src = tmp_path / "src"
210 (src / "man1").mkdir(parents=True)
211 # man8 does not exist.
212 _write(src / "man1" / "foo.1.gz")
213
214 dst = tmp_path / "dst"
215 stats = postprocess(src, dst)
216
217 assert (dst / "1" / "foo.1.gz").is_file()
218 assert not (dst / "8").exists()
219 assert stats.files_copied == 1
220
221
222def test_cross_section_missing_target_skipped(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 2

postprocessFunction · 0.90
_writeFunction · 0.85

Tested by

no test coverage detected