| 31 | } |
| 32 | |
| 33 | [[noreturn]] void FailMissingTestData(const char *a_path) { |
| 34 | std::fprintf( |
| 35 | stderr, |
| 36 | "error: test data not found at '%s'.\n" |
| 37 | "Run tests via ctest from the build directory, or run the tests binary\n" |
| 38 | "with its working directory set to the folder that contains data/.\n", |
| 39 | a_path); |
| 40 | std::exit(1); |
| 41 | } |
| 42 | |
| 43 | void RequireTestData(const char *a_name) { |
| 44 | const std::string path = TestDataPath(a_name); |
no outgoing calls
no test coverage detected