MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / FormatCxxExceptionMessage

Function FormatCxxExceptionMessage

test/common/gtest/gtest.cpp:3827–3838  ·  view source on GitHub ↗

Adds an "exception thrown" fatal failure to the current test.

Source from the content-addressed store, hash-verified

3825
3826// Adds an "exception thrown" fatal failure to the current test.
3827static 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
3840static std::string PrintTestPartResultToString(
3841 const TestPartResult& test_part_result);

Callers 1

Calls 1

GetStringMethod · 0.80

Tested by

no test coverage detected