(tmp_path, source, header=HEADER, reverse=False)
| 21 | |
| 22 | |
| 23 | def _extract(tmp_path, source, header=HEADER, reverse=False): |
| 24 | paths = [tmp_path / "types.hpp", tmp_path / "use.cpp"] |
| 25 | paths[0].write_text(header, encoding="utf-8") |
| 26 | paths[1].write_text('#include "types.hpp"\n' + source, encoding="utf-8") |
| 27 | result = extract(paths[::-1] if reverse else paths, root=tmp_path, |
| 28 | cache_root=tmp_path / "cache", parallel=False) |
| 29 | return paths, result |
| 30 | |
| 31 | |
| 32 | def _calls(result, caller="Run()"): |
no test coverage detected