| 311 | } |
| 312 | |
| 313 | std::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 | |
| 323 | TEST(StatusTest, ReturnIfNotOk) { |
| 324 | auto ok_status = Status::OK(); |