(tmp_path: Path, files: dict[str, str])
| 19 | |
| 20 | |
| 21 | def _extract(tmp_path: Path, files: dict[str, str]) -> dict: |
| 22 | paths = [] |
| 23 | for rel, text in files.items(): |
| 24 | path = tmp_path / rel |
| 25 | path.parent.mkdir(parents=True, exist_ok=True) |
| 26 | path.write_text(text, encoding="utf-8") |
| 27 | paths.append(path) |
| 28 | return extract(paths, cache_root=tmp_path / ".cache", root=tmp_path) |
| 29 | |
| 30 | |
| 31 | def _calls(result: dict, source_file: str, target_file: str) -> list[dict]: |
no test coverage detected