MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / FormatCxxExceptionMessage

Function FormatCxxExceptionMessage

tests/gtest/src/gtest.cc:2557–2568  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2555
2556// Adds an "exception thrown" fatal failure to the current test.
2557static 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
2570static std::string PrintTestPartResultToString(
2571 const TestPartResult& test_part_result);

Callers 1

Calls 1

GetStringMethod · 0.45

Tested by

no test coverage detected