(tmp_path: Path, files: dict[str, str])
| 17 | |
| 18 | |
| 19 | def _extract(tmp_path: Path, files: dict[str, str]) -> dict: |
| 20 | for name, src in files.items(): |
| 21 | (tmp_path / name).write_text(src, encoding="utf-8") |
| 22 | with warnings.catch_warnings(): |
| 23 | warnings.simplefilter("ignore") |
| 24 | return extract( |
| 25 | [tmp_path / n for n in files], |
| 26 | root=tmp_path, |
| 27 | cache_root=tmp_path, |
| 28 | parallel=False, |
| 29 | ) |
| 30 | |
| 31 | |
| 32 | def _calls(r: dict) -> set[tuple[str, str]]: |
no test coverage detected