(tmp_path, files: dict[str, str])
| 78 | |
| 79 | |
| 80 | def _extract(tmp_path, files: dict[str, str]): |
| 81 | for name, body in files.items(): |
| 82 | p = tmp_path / name |
| 83 | p.parent.mkdir(parents=True, exist_ok=True) |
| 84 | p.write_text(body) |
| 85 | old = os.getcwd() |
| 86 | try: |
| 87 | os.chdir(tmp_path) |
| 88 | return extract([Path(n) for n in files], |
| 89 | cache_root=tmp_path / ".cache", parallel=False) |
| 90 | finally: |
| 91 | os.chdir(old) |
| 92 | |
| 93 | |
| 94 | def _node(r, label, source_contains=""): |
no test coverage detected