(tmp_path: Path)
| 206 | |
| 207 | |
| 208 | def 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 | |
| 222 | def test_cross_section_missing_target_skipped(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected