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

Function test_dry_run

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

Source from the content-addressed store, hash-verified

168
169
170def test_dry_run(tmp_path: Path) -> None:
171 src = _make_src(tmp_path)
172 _write(src / "man1" / "tar.1.gz", "tar-data")
173 os.symlink("tar.1.gz", src / "man1" / "gtar.1.gz")
174
175 dst = tmp_path / "dst"
176 stats = postprocess(src, dst, dry_run=True)
177
178 assert not dst.exists()
179 assert stats.files_copied == 1
180 assert stats.symlinks_copied == 1
181
182
183def test_stats_counts(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