MCPcopy Create free account
hub / github.com/apache/arrow / GetTestResourceRoot

Function GetTestResourceRoot

cpp/src/arrow/testing/util.cc:115–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115Result<std::string> GetTestResourceRoot() {
116 auto maybe_var = ::arrow::internal::GetEnvVar("ARROW_TEST_DATA");
117 if (maybe_var.status().IsKeyError()) {
118 return Status::IOError(
119 "Test resources not found, set ARROW_TEST_DATA to <repo root>/testing/data");
120 }
121 return maybe_var;
122}
123
124Result<std::string> GetTestResourcePath(std::string subpath) {
125 ARROW_ASSIGN_OR_RAISE(auto root, GetTestResourceRoot());

Callers

nothing calls this directly

Calls 3

GetEnvVarFunction · 0.85
IOErrorFunction · 0.85
statusMethod · 0.45

Tested by

no test coverage detected