(tmp_path, files: dict[str, str])
| 37 | |
| 38 | |
| 39 | def _extract(tmp_path, files: dict[str, str]): |
| 40 | for name, body in files.items(): |
| 41 | p = tmp_path / name |
| 42 | p.parent.mkdir(parents=True, exist_ok=True) |
| 43 | p.write_text(body) |
| 44 | old = os.getcwd() |
| 45 | try: |
| 46 | os.chdir(tmp_path) |
| 47 | paths = [Path(n).resolve() for n in files] |
| 48 | return extract(paths, root=tmp_path.resolve(), cache_root=Path(tempfile.mkdtemp())) |
| 49 | finally: |
| 50 | os.chdir(old) |
| 51 | |
| 52 | |
| 53 | def _call_edges(result, labels): |
no test coverage detected