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

Function test_regular_files_copied

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

Source from the content-addressed store, hash-verified

25
26
27def test_regular_files_copied(tmp_path: Path) -> None:
28 src = _make_src(tmp_path)
29 _write(src / "man1" / "tar.1.gz", "tar-data")
30 _write(src / "man8" / "mount.8.gz", "mount-data")
31
32 dst = tmp_path / "dst"
33 stats = postprocess(src, dst)
34
35 assert (dst / "1" / "tar.1.gz").read_text() == "tar-data"
36 assert (dst / "8" / "mount.8.gz").read_text() == "mount-data"
37 assert stats.files_copied == 2
38 assert stats.symlinks_copied == 0
39 assert stats.symlinks_skipped == 0
40
41
42def test_same_section_symlink_preserved(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 3

postprocessFunction · 0.90
_make_srcFunction · 0.85
_writeFunction · 0.85

Tested by

no test coverage detected