Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testing::TestResult Class Reference

#include <JETSCAPE/blob/main/external_packages/googletest/googletest/include/gtest/gtest.h>

+ Collaboration diagram for testing::TestResult:

Public Member Functions

 TestResult ()
 
 ~TestResult ()
 
int total_part_count () const
 
int test_property_count () const
 
bool Passed () const
 
bool Failed () const
 
bool HasFatalFailure () const
 
bool HasNonfatalFailure () const
 
TimeInMillis elapsed_time () const
 
const TestPartResultGetTestPartResult (int i) const
 
const TestPropertyGetTestProperty (int i) const
 

Private Member Functions

const std::vector
< TestPartResult > & 
test_part_results () const
 
const std::vector< TestProperty > & test_properties () const
 
void set_elapsed_time (TimeInMillis elapsed)
 
void RecordProperty (const std::string &xml_element, const TestProperty &test_property)
 
void AddTestPartResult (const TestPartResult &test_part_result)
 
int death_test_count () const
 
int increment_death_test_count ()
 
void ClearTestPartResults ()
 
void Clear ()
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestResult)
 

Static Private Member Functions

static bool ValidateTestProperty (const std::string &xml_element, const TestProperty &test_property)
 

Private Attributes

internal::Mutex test_properites_mutex_
 
std::vector< TestPartResulttest_part_results_
 
std::vector< TestPropertytest_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
 

Detailed Description

Definition at line 523 of file gtest.h.

View newest version in sPHENIX GitHub at line 523 of file gtest.h

Constructor & Destructor Documentation

testing::TestResult::TestResult ( )

Definition at line 2017 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2017 of file gtest.cc

testing::TestResult::~TestResult ( )

Definition at line 2023 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2023 of file gtest.cc

Member Function Documentation

void testing::TestResult::AddTestPartResult ( const TestPartResult test_part_result)
private

Definition at line 2050 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2050 of file gtest.cc

References test_part_results_.

Referenced by testing::internal::DefaultGlobalTestPartResultReporter::ReportTestPartResult().

+ Here is the caller graph for this function:

void testing::TestResult::Clear ( void  )
private

Definition at line 2162 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2162 of file gtest.cc

References death_test_count_, elapsed_time_, test_part_results_, and test_properties_.

Referenced by testing::TestCase::ClearResult(), and testing::TestInfo::ClearTestResult().

+ Here is the caller graph for this function:

void testing::TestResult::ClearTestPartResults ( )
private

Definition at line 2045 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2045 of file gtest.cc

References test_part_results_.

Referenced by testing::internal::TestResultAccessor::ClearTestPartResults().

+ Here is the caller graph for this function:

int testing::TestResult::death_test_count ( ) const
inlineprivate

Definition at line 605 of file gtest.h.

View newest version in sPHENIX GitHub at line 605 of file gtest.h

TimeInMillis testing::TestResult::elapsed_time ( ) const
inline

Definition at line 551 of file gtest.h.

View newest version in sPHENIX GitHub at line 551 of file gtest.h

Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), and testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo().

+ Here is the caller graph for this function:

bool testing::TestResult::Failed ( ) const

Definition at line 2170 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2170 of file gtest.cc

References testing::TestPartResult::failed(), GetTestPartResult(), i, and total_part_count().

Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), and testing::TestCase::TestFailed().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const TestPartResult & testing::TestResult::GetTestPartResult ( int  i) const

Definition at line 2029 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2029 of file gtest.cc

References testing::internal::posix::Abort(), test_part_results_, and total_part_count().

Referenced by Failed(), and testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const TestProperty & testing::TestResult::GetTestProperty ( int  i) const

Definition at line 2038 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2038 of file gtest.cc

References testing::internal::posix::Abort(), test_properties_, and test_property_count().

Referenced by testing::internal::FinalSuccessChecker::TearDown(), and testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

testing::TestResult::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestResult  )
private
bool testing::TestResult::HasFatalFailure ( ) const

Definition at line 2184 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2184 of file gtest.cc

References testing::internal::CountIf(), test_part_results_, and testing::TestPartFatallyFailed().

Referenced by testing::Test::HasFatalFailure().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool testing::TestResult::HasNonfatalFailure ( ) const

Definition at line 2194 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2194 of file gtest.cc

References testing::internal::CountIf(), test_part_results_, and testing::TestPartNonfatallyFailed().

+ Here is the call graph for this function:

int testing::TestResult::increment_death_test_count ( )
inlineprivate

Definition at line 608 of file gtest.h.

View newest version in sPHENIX GitHub at line 608 of file gtest.h

bool testing::TestResult::Passed ( ) const
inline

Definition at line 539 of file gtest.h.

View newest version in sPHENIX GitHub at line 539 of file gtest.h

Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), and testing::TestCase::TestPassed().

+ Here is the caller graph for this function:

void testing::TestResult::RecordProperty ( const std::string &  xml_element,
const TestProperty test_property 
)
private

Definition at line 2057 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2057 of file gtest.cc

References testing::TestProperty::key(), test_properites_mutex_, test_properties_, ValidateTestProperty(), and testing::TestProperty::value().

Referenced by testing::internal::UnitTestImpl::RecordProperty(), and testing::internal::TestResultAccessor::RecordProperty().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::TestResult::set_elapsed_time ( TimeInMillis  elapsed)
inlineprivate

Definition at line 584 of file gtest.h.

View newest version in sPHENIX GitHub at line 584 of file gtest.h

Referenced by testing::TestInfo::Run().

+ Here is the caller graph for this function:

const std::vector<TestPartResult>& testing::TestResult::test_part_results ( ) const
inlineprivate

Definition at line 574 of file gtest.h.

View newest version in sPHENIX GitHub at line 574 of file gtest.h

Referenced by testing::internal::TestResultAccessor::test_part_results().

+ Here is the caller graph for this function:

const std::vector<TestProperty>& testing::TestResult::test_properties ( ) const
inlineprivate

Definition at line 579 of file gtest.h.

View newest version in sPHENIX GitHub at line 579 of file gtest.h

int testing::TestResult::test_property_count ( ) const

Definition at line 2205 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2205 of file gtest.cc

References test_properties_.

Referenced by GetTestProperty(), and testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes().

+ Here is the caller graph for this function:

int testing::TestResult::total_part_count ( ) const

Definition at line 2200 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2200 of file gtest.cc

References test_part_results_.

Referenced by Failed(), GetTestPartResult(), and testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo().

+ Here is the caller graph for this function:

bool testing::TestResult::ValidateTestProperty ( const std::string &  xml_element,
const TestProperty test_property 
)
staticprivate

Definition at line 2155 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2155 of file gtest.cc

References testing::GetReservedAttributesForElement(), testing::TestProperty::key(), and testing::ValidateTestPropertyName().

Referenced by RecordProperty().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

Definition at line 567 of file gtest.h.

View newest version in sPHENIX GitHub at line 567 of file gtest.h

friend class internal::ExecDeathTest
friend

Definition at line 568 of file gtest.h.

View newest version in sPHENIX GitHub at line 568 of file gtest.h

friend class internal::TestResultAccessor
friend

Definition at line 569 of file gtest.h.

View newest version in sPHENIX GitHub at line 569 of file gtest.h

friend class internal::UnitTestImpl
friend

Definition at line 570 of file gtest.h.

View newest version in sPHENIX GitHub at line 570 of file gtest.h

friend class internal::WindowsDeathTest
friend

Definition at line 571 of file gtest.h.

View newest version in sPHENIX GitHub at line 571 of file gtest.h

friend class TestCase
friend

Definition at line 565 of file gtest.h.

View newest version in sPHENIX GitHub at line 565 of file gtest.h

friend class TestInfo
friend

Definition at line 564 of file gtest.h.

View newest version in sPHENIX GitHub at line 564 of file gtest.h

friend class UnitTest
friend

Definition at line 566 of file gtest.h.

View newest version in sPHENIX GitHub at line 566 of file gtest.h

Member Data Documentation

int testing::TestResult::death_test_count_
private

Definition at line 625 of file gtest.h.

View newest version in sPHENIX GitHub at line 625 of file gtest.h

Referenced by Clear().

TimeInMillis testing::TestResult::elapsed_time_
private

Definition at line 627 of file gtest.h.

View newest version in sPHENIX GitHub at line 627 of file gtest.h

Referenced by Clear().

std::vector<TestPartResult> testing::TestResult::test_part_results_
private

Definition at line 621 of file gtest.h.

View newest version in sPHENIX GitHub at line 621 of file gtest.h

Referenced by AddTestPartResult(), Clear(), ClearTestPartResults(), GetTestPartResult(), HasFatalFailure(), HasNonfatalFailure(), and total_part_count().

internal::Mutex testing::TestResult::test_properites_mutex_
private

Definition at line 618 of file gtest.h.

View newest version in sPHENIX GitHub at line 618 of file gtest.h

Referenced by RecordProperty().

std::vector<TestProperty> testing::TestResult::test_properties_
private

Definition at line 623 of file gtest.h.

View newest version in sPHENIX GitHub at line 623 of file gtest.h

Referenced by Clear(), GetTestProperty(), RecordProperty(), and test_property_count().


The documentation for this class was generated from the following files: