Adds an "exception thrown" fatal failure to the current test.
| 2555 | |
| 2556 | // Adds an "exception thrown" fatal failure to the current test. |
| 2557 | static std::string FormatCxxExceptionMessage(const char* description, |
| 2558 | const char* location) { |
| 2559 | Message message; |
| 2560 | if (description != nullptr) { |
| 2561 | message << "C++ exception with description \"" << description << "\""; |
| 2562 | } else { |
| 2563 | message << "Unknown C++ exception"; |
| 2564 | } |
| 2565 | message << " thrown in " << location << "."; |
| 2566 | |
| 2567 | return message.GetString(); |
| 2568 | } |
| 2569 | |
| 2570 | static std::string PrintTestPartResultToString( |
| 2571 | const TestPartResult& test_part_result); |
no test coverage detected