(tmp_path: Path)
| 168 | |
| 169 | |
| 170 | def 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 | |
| 183 | def test_stats_counts(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected