(tmp_path, files: dict[str, str])
| 41 | |
| 42 | |
| 43 | def _extract(tmp_path, files: dict[str, str]): |
| 44 | for name, body in files.items(): |
| 45 | p = tmp_path / name |
| 46 | p.parent.mkdir(parents=True, exist_ok=True) |
| 47 | p.write_text(body) |
| 48 | old = os.getcwd() |
| 49 | try: |
| 50 | os.chdir(tmp_path) |
| 51 | return extract([Path(n) for n in files], cache_root=Path(tempfile.mkdtemp())) |
| 52 | finally: |
| 53 | os.chdir(old) |
| 54 | |
| 55 | |
| 56 | def _methods(r, label): |
no test coverage detected