MCPcopy Create free account
hub / github.com/brofield/simpleini / FailMissingTestData

Function FailMissingTestData

tests/ts-utf8-conversion.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
43void RequireTestData(const char *a_name) {
44 const std::string path = TestDataPath(a_name);

Callers 2

RequireTestDataFunction · 0.85
LoadHexLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected