(tmp_path, client, caller, worker="struct Worker { void Run(); };", extra=None)
| 13 | |
| 14 | |
| 15 | def _extract(tmp_path, client, caller, worker="struct Worker { void Run(); };", extra=None): |
| 16 | files = {"client.hpp": client, "worker.hpp": worker, "use.cpp": caller} |
| 17 | files.update(extra or {}) |
| 18 | paths = [] |
| 19 | for name, text in files.items(): |
| 20 | path = tmp_path / name |
| 21 | path.write_text(text, encoding="utf-8") |
| 22 | paths.append(path) |
| 23 | return paths, extract(paths, root=tmp_path, cache_root=tmp_path / "cache", parallel=False) |
| 24 | |
| 25 | |
| 26 | def _calls(result): |
no test coverage detected