Go to the documentation of this file.
33 #include "gtest/gtest-test-part.h"
34 #include "src/gtest-internal-inl.h"
49 return os <<
result.file_name() <<
":" <<
result.line_number() <<
": "
52 :
result.type() == TestPartResult::kSkip
56 :
"Non-fatal failure")
58 <<
result.message() << std::endl;
68 if (index < 0 || index >=
size()) {
69 printf(
"\nInvalid index (%d) into TestPartResultArray.\n",
index);
78 return static_cast<int>(
array_.size());
84 : has_new_fatal_failure_(
false),
86 GetTestPartResultReporterForCurrentThread()) {
97 if (
result.fatally_failed())
static std::string ExtractSummary(const char *message)
UnitTestImpl * GetUnitTestImpl()
_Use_decl_annotations_ int __cdecl printf(const char *_Format,...)
virtual void ReportTestPartResult(const TestPartResult &result)
virtual void ReportTestPartResult(const TestPartResult &result)=0
std::ostream & operator<<(std::ostream &os, const Message &sb)
TestPartResultReporterInterface * original_reporter_
bool has_new_fatal_failure_
const char * message() const
void Append(const TestPartResult &result)
virtual ~HasNewFatalFailureHelper()
const TestPartResult & GetTestPartResult(int index) const
HasNewFatalFailureHelper()
std::vector< TestPartResult > array_
const GTEST_API_ char kStackTraceMarker[]
void SetTestPartResultReporterForCurrentThread(TestPartResultReporterInterface *reporter)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:48