Adds an "exception thrown" fatal failure to the current test.
| 3875 | |
| 3876 | // Adds an "exception thrown" fatal failure to the current test. |
| 3877 | static std::string FormatCxxExceptionMessage(const char* description, |
| 3878 | const char* location) { |
| 3879 | Message message; |
| 3880 | if (description != nullptr) { |
| 3881 | message << "C++ exception with description \"" << description << "\""; |
| 3882 | } else { |
| 3883 | message << "Unknown C++ exception"; |
| 3884 | } |
| 3885 | message << " thrown in " << location << "."; |
| 3886 | |
| 3887 | return message.GetString(); |
| 3888 | } |
| 3889 | |
| 3890 | static std::string PrintTestPartResultToString( |
| 3891 | const TestPartResult& test_part_result); |
no test coverage detected