Adds an "exception thrown" fatal failure to the current test.
| 3825 | |
| 3826 | // Adds an "exception thrown" fatal failure to the current test. |
| 3827 | static std::string FormatCxxExceptionMessage(const char* description, |
| 3828 | const char* location) { |
| 3829 | Message message; |
| 3830 | if (description != NULL) { |
| 3831 | message << "C++ exception with description \"" << description << "\""; |
| 3832 | } else { |
| 3833 | message << "Unknown C++ exception"; |
| 3834 | } |
| 3835 | message << " thrown in " << location << "."; |
| 3836 | |
| 3837 | return message.GetString(); |
| 3838 | } |
| 3839 | |
| 3840 | static std::string PrintTestPartResultToString( |
| 3841 | const TestPartResult& test_part_result); |
no test coverage detected