Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

 TestResult ()
 
 ~TestResult ()
 
int total_part_count () const
 
int test_property_count () const
 
bool Passed () const
 
bool Skipped () const
 
bool Failed () const
 
bool HasFatalFailure () const
 
bool HasNonfatalFailure () const
 
TimeInMillis elapsed_time () const
 
TimeInMillis start_timestamp () const
 
const TestPartResult & GetTestPartResult (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_start_timestamp (TimeInMillis start)
 
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< TestPartResult > test_part_results_
 
std::vector< TestPropertytest_properties_
 
int death_test_count_
 
TimeInMillis start_timestamp_
 
TimeInMillis elapsed_time_
 

Friends

class TestInfo
 
class TestSuite
 
class UnitTest
 
class internal::DefaultGlobalTestPartResultReporter
 
class internal::ExecDeathTest
 
class internal::TestResultAccessor
 
class internal::UnitTestImpl
 
class internal::WindowsDeathTest
 
class internal::FuchsiaDeathTest
 

Detailed Description

Definition at line 570 of file gtest.h.

Constructor & Destructor Documentation

testing::TestResult::TestResult ( )

Definition at line 2208 of file gtest.cc.

testing::TestResult::~TestResult ( )

Definition at line 2212 of file gtest.cc.

Member Function Documentation

int testing::TestResult::total_part_count ( ) const

Definition at line 2412 of file gtest.cc.

int testing::TestResult::test_property_count ( ) const

Definition at line 2417 of file gtest.cc.

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

Definition at line 586 of file gtest.h.

bool testing::TestResult::Skipped ( ) const

Definition at line 2377 of file gtest.cc.

bool testing::TestResult::Failed ( ) const

Definition at line 2382 of file gtest.cc.

bool testing::TestResult::HasFatalFailure ( ) const

Definition at line 2396 of file gtest.cc.

bool testing::TestResult::HasNonfatalFailure ( ) const

Definition at line 2406 of file gtest.cc.

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

Definition at line 601 of file gtest.h.

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

Definition at line 605 of file gtest.h.

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

Definition at line 2218 of file gtest.cc.

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

Definition at line 2227 of file gtest.cc.

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

Definition at line 628 of file gtest.h.

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

Definition at line 633 of file gtest.h.

void testing::TestResult::set_start_timestamp ( TimeInMillis  start)
inlineprivate

Definition at line 638 of file gtest.h.

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

Definition at line 641 of file gtest.h.

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

Definition at line 2246 of file gtest.cc.

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

Definition at line 2357 of file gtest.cc.

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

Definition at line 2239 of file gtest.cc.

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

Definition at line 662 of file gtest.h.

int testing::TestResult::increment_death_test_count ( )
inlineprivate

Definition at line 665 of file gtest.h.

void testing::TestResult::ClearTestPartResults ( )
private

Definition at line 2234 of file gtest.cc.

void testing::TestResult::Clear ( )
private

Definition at line 2364 of file gtest.cc.

testing::TestResult::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestResult  )
private

Friends And Related Function Documentation

friend class TestInfo
friend

Definition at line 617 of file gtest.h.

friend class TestSuite
friend

Definition at line 618 of file gtest.h.

friend class UnitTest
friend

Definition at line 619 of file gtest.h.

friend class internal::DefaultGlobalTestPartResultReporter
friend

Definition at line 620 of file gtest.h.

friend class internal::ExecDeathTest
friend

Definition at line 621 of file gtest.h.

friend class internal::TestResultAccessor
friend

Definition at line 622 of file gtest.h.

friend class internal::UnitTestImpl
friend

Definition at line 623 of file gtest.h.

friend class internal::WindowsDeathTest
friend

Definition at line 624 of file gtest.h.

friend class internal::FuchsiaDeathTest
friend

Definition at line 625 of file gtest.h.

Member Data Documentation

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

Definition at line 675 of file gtest.h.

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

Definition at line 678 of file gtest.h.

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

Definition at line 680 of file gtest.h.

int testing::TestResult::death_test_count_
private

Definition at line 682 of file gtest.h.

TimeInMillis testing::TestResult::start_timestamp_
private

Definition at line 684 of file gtest.h.

TimeInMillis testing::TestResult::elapsed_time_
private

Definition at line 686 of file gtest.h.


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