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

Method ExtractSummary

src/gtest/gtest-all.cpp:8950–8954  ·  view source on GitHub ↗

Gets the summary of the failure message by omitting the stack trace in it.

Source from the content-addressed store, hash-verified

8948// Gets the summary of the failure message by omitting the stack trace
8949// in it.
8950internal::String TestPartResult::ExtractSummary(const char* message) {
8951 const char* const stack_trace = strstr(message, internal::kStackTraceMarker);
8952 return stack_trace == NULL ? internal::String(message) :
8953 internal::String(message, stack_trace - message);
8954}
8955
8956// Prints a TestPartResult object.
8957std::ostream& operator<<(std::ostream& os, const TestPartResult& result) {

Callers

nothing calls this directly

Calls 1

StringFunction · 0.70

Tested by

no test coverage detected