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

Function GetTestResourceRoot

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

Source from the content-addressed store, hash-verified

113}
114
115Status GetTestResourceRoot(std::string* out) {
116 const char* c_root = std::getenv("ARROW_TEST_DATA");
117 if (!c_root) {
118 return Status::IOError(
119 "Test resources not found, set ARROW_TEST_DATA to <repo root>/testing/data");
120 }
121 *out = std::string(c_root);
122 return Status::OK();
123}
124
125// TODO(GH-48593): Remove when libc++ supports std::chrono timezones.
126std::optional<std::string> GetTestTimezoneDatabaseRoot() {

Callers 3

ExampleTlsCertificatesFunction · 0.85
TEST_FFunction · 0.85

Calls 2

IOErrorFunction · 0.85
OKFunction · 0.50

Tested by 3

ExampleTlsCertificatesFunction · 0.68
TEST_FFunction · 0.68