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

Function StripContext

cpp/src/arrow/status_test.cc:306–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306std::string StripContext(const std::string& message) {
307#ifdef ARROW_EXTRA_ERROR_CONTEXT
308 auto pos = message.find_first_of('\n');
309 if (pos != message.npos) {
310 return message.substr(0, pos);
311 }
312#endif
313 return message;
314}
315
316TEST(StatusTest, ReturnIfNotOk) {
317 auto f = [](auto v) {

Callers 1

TESTFunction · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected