MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / FormatCxxExceptionMessage

Function FormatCxxExceptionMessage

tests/gtest/gtest-all.cc:3877–3888  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3875
3876// Adds an "exception thrown" fatal failure to the current test.
3877static 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
3890static std::string PrintTestPartResultToString(
3891 const TestPartResult& test_part_result);

Callers 1

Calls 1

GetStringMethod · 0.80

Tested by

no test coverage detected