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