(tmp_path, files: dict[str, str])
| 48 | |
| 49 | |
| 50 | def _extract(tmp_path, files: dict[str, str]): |
| 51 | for name, body in files.items(): |
| 52 | p = tmp_path / name |
| 53 | p.parent.mkdir(parents=True, exist_ok=True) |
| 54 | p.write_text(body) |
| 55 | old = os.getcwd() |
| 56 | try: |
| 57 | os.chdir(tmp_path) |
| 58 | return extract([Path(n) for n in files], cache_root=Path(tempfile.mkdtemp())) |
| 59 | finally: |
| 60 | os.chdir(old) |
| 61 | |
| 62 | |
| 63 | def _by_line(r, label): |
no test coverage detected