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

Function StripContext

cpp/src/arrow/status_test.cc:313–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313std::string StripContext(const std::string& message) {
314#ifdef ARROW_EXTRA_ERROR_CONTEXT
315 auto pos = message.find_first_of('\n');
316 if (pos != message.npos) {
317 return message.substr(0, pos);
318 }
319#endif
320 return message;
321}
322
323TEST(StatusTest, ReturnIfNotOk) {
324 auto ok_status = Status::OK();

Callers 1

TESTFunction · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected