(tmp_path: Path)
| 25 | |
| 26 | |
| 27 | def 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 | |
| 42 | def test_same_section_symlink_preserved(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected