MCPcopy Create free account
hub / github.com/BVLC/caffe / FormatCxxExceptionMessage

Function FormatCxxExceptionMessage

src/gtest/gtest-all.cpp:3335–3346  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3333
3334// Adds an "exception thrown" fatal failure to the current test.
3335static internal::String FormatCxxExceptionMessage(const char* description,
3336 const char* location) {
3337 Message message;
3338 if (description != NULL) {
3339 message << "C++ exception with description \"" << description << "\"";
3340 } else {
3341 message << "Unknown C++ exception";
3342 }
3343 message << " thrown in " << location << ".";
3344
3345 return message.GetString();
3346}
3347
3348static internal::String PrintTestPartResultToString(
3349 const TestPartResult& test_part_result);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected