Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
testing::TestResult Class Reference

#include <gtest.h>

Public Member Functions

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

Private Member Functions

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

Static Private Member Functions

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

Private Attributes

int death_test_count_
 
TimeInMillis elapsed_time_
 
std::vector< TestPartResulttest_part_results_
 
internal::Mutex test_properites_mutex_
 
std::vector< TestPropertytest_properties_
 

Friends

class internal::DefaultGlobalTestPartResultReporter
 
class internal::ExecDeathTest
 
class internal::TestResultAccessor
 
class internal::UnitTestImpl
 
class internal::WindowsDeathTest
 
class TestCase
 
class TestInfo
 
class UnitTest
 

Detailed Description

Definition at line 524 of file gtest.h.

Constructor & Destructor Documentation

testing::TestResult::TestResult ( )

Definition at line 1980 of file gtest.cc.

testing::TestResult::~TestResult ( )

Definition at line 1986 of file gtest.cc.

Member Function Documentation

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

Definition at line 2013 of file gtest.cc.

void testing::TestResult::Clear ( )
private

Definition at line 2125 of file gtest.cc.

void testing::TestResult::ClearTestPartResults ( )
private

Definition at line 2008 of file gtest.cc.

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

Definition at line 606 of file gtest.h.

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

Definition at line 552 of file gtest.h.

bool testing::TestResult::Failed ( ) const

Definition at line 2133 of file gtest.cc.

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

Definition at line 1992 of file gtest.cc.

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

Definition at line 2001 of file gtest.cc.

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

Definition at line 2147 of file gtest.cc.

bool testing::TestResult::HasNonfatalFailure ( ) const

Definition at line 2157 of file gtest.cc.

int testing::TestResult::increment_death_test_count ( )
inlineprivate

Definition at line 609 of file gtest.h.

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

Definition at line 540 of file gtest.h.

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

Definition at line 2020 of file gtest.cc.

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

Definition at line 585 of file gtest.h.

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

Definition at line 575 of file gtest.h.

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

Definition at line 580 of file gtest.h.

int testing::TestResult::test_property_count ( ) const

Definition at line 2168 of file gtest.cc.

int testing::TestResult::total_part_count ( ) const

Definition at line 2163 of file gtest.cc.

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

Definition at line 2118 of file gtest.cc.

Friends And Related Function Documentation

Definition at line 568 of file gtest.h.

friend class internal::ExecDeathTest
friend

Definition at line 569 of file gtest.h.

friend class internal::TestResultAccessor
friend

Definition at line 570 of file gtest.h.

friend class internal::UnitTestImpl
friend

Definition at line 571 of file gtest.h.

friend class internal::WindowsDeathTest
friend

Definition at line 572 of file gtest.h.

friend class TestCase
friend

Definition at line 566 of file gtest.h.

friend class TestInfo
friend

Definition at line 565 of file gtest.h.

friend class UnitTest
friend

Definition at line 567 of file gtest.h.

Member Data Documentation

int testing::TestResult::death_test_count_
private

Definition at line 626 of file gtest.h.

TimeInMillis testing::TestResult::elapsed_time_
private

Definition at line 628 of file gtest.h.

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

Definition at line 622 of file gtest.h.

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

Definition at line 619 of file gtest.h.

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

Definition at line 624 of file gtest.h.


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


rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:18