proxygen
|
#include <gtest.h>
Static Private Member Functions | |
static bool | ValidateTestProperty (const std::string &xml_element, const TestProperty &test_property) |
static bool | ValidateTestProperty (const std::string &xml_element, const TestProperty &test_property) |
static bool | ValidateTestProperty (const std::string &xml_element, const TestProperty &test_property) |
Private Attributes | |
internal::Mutex | test_properites_mutex_ |
std::vector< TestPartResult > | test_part_results_ |
std::vector< TestProperty > | test_properties_ |
int | death_test_count_ |
TimeInMillis | elapsed_time_ |
Friends | |
class | TestInfo |
class | TestCase |
class | UnitTest |
class | internal::DefaultGlobalTestPartResultReporter |
class | internal::ExecDeathTest |
class | internal::TestResultAccessor |
class | internal::UnitTestImpl |
class | internal::WindowsDeathTest |
testing::TestResult::TestResult | ( | ) |
testing::TestResult::~TestResult | ( | ) |
testing::TestResult::TestResult | ( | ) |
testing::TestResult::~TestResult | ( | ) |
|
private |
Definition at line 2050 of file gtest.cc.
References test_part_results_.
Referenced by testing::internal::DefaultGlobalTestPartResultReporter::ReportTestPartResult().
|
private |
|
private |
|
private |
Definition at line 2162 of file gtest.cc.
References death_test_count_, elapsed_time_, test_part_results_, and test_properties_.
Referenced by testing::TestCase::ClearResult(), testing::TestInfo::ClearTestResult(), and testing::FormatWordList().
|
private |
|
private |
|
private |
Definition at line 2045 of file gtest.cc.
References test_part_results_.
Referenced by testing::internal::TestResultAccessor::ClearTestPartResults().
|
private |
|
private |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
Definition at line 551 of file gtest.h.
References i.
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), and testing::internal::PortableLocaltime().
|
inline |
bool testing::TestResult::Failed | ( | ) | const |
bool testing::TestResult::Failed | ( | ) | const |
bool testing::TestResult::Failed | ( | ) | const |
Definition at line 2170 of file gtest.cc.
References testing::TestPartResult::failed(), GetTestPartResult(), i, and total_part_count().
Referenced by testing::FormatWordList(), testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), and testing::TestCase::TestFailed().
const TestPartResult & testing::TestResult::GetTestPartResult | ( | int | i | ) | const |
Definition at line 2029 of file gtest.cc.
References testing::internal::posix::Abort(), test_part_results_, and total_part_count().
Referenced by Failed(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), and testing::internal::PortableLocaltime().
const TestPartResult& testing::TestResult::GetTestPartResult | ( | int | i | ) | const |
const TestPartResult& testing::TestResult::GetTestPartResult | ( | int | i | ) | const |
const TestProperty& testing::TestResult::GetTestProperty | ( | int | i | ) | const |
const TestProperty & testing::TestResult::GetTestProperty | ( | int | i | ) | const |
Definition at line 2038 of file gtest.cc.
References testing::internal::posix::Abort(), test_properties_, and test_property_count().
Referenced by testing::internal::PortableLocaltime(), testing::internal::FinalSuccessChecker::TearDown(), and testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes().
const TestProperty& testing::TestResult::GetTestProperty | ( | int | i | ) | const |
|
private |
|
private |
|
private |
bool testing::TestResult::HasFatalFailure | ( | ) | const |
Definition at line 2184 of file gtest.cc.
References testing::internal::CountIf(), test_part_results_, and testing::TestPartFatallyFailed().
Referenced by testing::Test::HasFatalFailure(), testing::TestPartFatallyFailed(), and testing::TestPartNonfatallyFailed().
bool testing::TestResult::HasFatalFailure | ( | ) | const |
bool testing::TestResult::HasFatalFailure | ( | ) | const |
bool testing::TestResult::HasNonfatalFailure | ( | ) | const |
bool testing::TestResult::HasNonfatalFailure | ( | ) | const |
bool testing::TestResult::HasNonfatalFailure | ( | ) | const |
Definition at line 2194 of file gtest.cc.
References testing::internal::CountIf(), test_part_results_, and testing::TestPartNonfatallyFailed().
Referenced by testing::TestPartNonfatallyFailed().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
private |
|
private |
Definition at line 2057 of file gtest.cc.
References testing::TestProperty::key(), folly::detail::lock(), test_properites_mutex_, test_properties_, ValidateTestProperty(), and testing::TestProperty::value().
Referenced by testing::internal::UnitTestImpl::RecordProperty(), testing::internal::TestResultAccessor::RecordProperty(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
|
private |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Definition at line 574 of file gtest.h.
Referenced by testing::internal::TestResultAccessor::test_part_results().
|
inlineprivate |
Definition at line 574 of file gtest.h.
|
inlineprivate |
Definition at line 574 of file gtest.h.
|
inlineprivate |
Definition at line 579 of file gtest.h.
|
inlineprivate |
Definition at line 579 of file gtest.h.
|
inlineprivate |
Definition at line 579 of file gtest.h.
int testing::TestResult::test_property_count | ( | ) | const |
int testing::TestResult::test_property_count | ( | ) | const |
int testing::TestResult::test_property_count | ( | ) | const |
Definition at line 2205 of file gtest.cc.
References test_properties_.
Referenced by GetTestProperty(), testing::internal::PortableLocaltime(), testing::TestPartNonfatallyFailed(), and testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes().
int testing::TestResult::total_part_count | ( | ) | const |
int testing::TestResult::total_part_count | ( | ) | const |
int testing::TestResult::total_part_count | ( | ) | const |
Definition at line 2200 of file gtest.cc.
References test_part_results_.
Referenced by Failed(), GetTestPartResult(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::PortableLocaltime(), and testing::TestPartNonfatallyFailed().
|
staticprivate |
|
staticprivate |
Definition at line 2155 of file gtest.cc.
References testing::GetReservedAttributesForElement(), testing::TestProperty::key(), and testing::ValidateTestPropertyName().
Referenced by testing::FormatWordList(), and RecordProperty().
|
staticprivate |
|
friend |
|
friend |
|
private |
|
private |
|
private |
Definition at line 621 of file gtest.h.
Referenced by AddTestPartResult(), Clear(), ClearTestPartResults(), GetTestPartResult(), HasFatalFailure(), HasNonfatalFailure(), and total_part_count().
|
private |
Definition at line 618 of file gtest.h.
Referenced by RecordProperty().
|
private |
Definition at line 623 of file gtest.h.
Referenced by Clear(), GetTestProperty(), RecordProperty(), and test_property_count().