(tmp_path, files: dict[str, str])
| 25 | |
| 26 | |
| 27 | def _extract(tmp_path, files: dict[str, str]) -> dict: |
| 28 | for name, body in files.items(): |
| 29 | p = tmp_path / name |
| 30 | p.parent.mkdir(parents=True, exist_ok=True) |
| 31 | p.write_text(body) |
| 32 | old = os.getcwd() |
| 33 | try: |
| 34 | os.chdir(tmp_path) |
| 35 | return extract([Path(n) for n in files], cache_root=Path(tempfile.mkdtemp())) |
| 36 | finally: |
| 37 | os.chdir(old) |
| 38 | |
| 39 | |
| 40 | def _rel(r: dict, relation: str, src: str, tgt: str) -> bool: |
no test coverage detected