Gets the summary of the failure message by omitting the stack trace in it.
| 8948 | // Gets the summary of the failure message by omitting the stack trace |
| 8949 | // in it. |
| 8950 | internal::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. |
| 8957 | std::ostream& operator<<(std::ostream& os, const TestPartResult& result) { |