CHROMA
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 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 17913 of file gtest.h.

Constructor & Destructor Documentation

◆ TestResult()

testing::TestResult::TestResult ( )

Definition at line 3178 of file gtest-all.cc.

◆ ~TestResult()

testing::TestResult::~TestResult ( )

Definition at line 3184 of file gtest-all.cc.

Member Function Documentation

◆ AddTestPartResult()

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

◆ Clear()

void testing::TestResult::Clear ( )
private

◆ ClearTestPartResults()

void testing::TestResult::ClearTestPartResults ( )
private

◆ death_test_count()

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

Definition at line 17995 of file gtest.h.

◆ elapsed_time()

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

◆ Failed()

bool testing::TestResult::Failed ( ) const

◆ GetTestPartResult()

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

◆ GetTestProperty()

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

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_()

testing::TestResult::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestResult  )
private

◆ HasFatalFailure()

bool testing::TestResult::HasFatalFailure ( ) const

◆ HasNonfatalFailure()

bool testing::TestResult::HasNonfatalFailure ( ) const

◆ increment_death_test_count()

int testing::TestResult::increment_death_test_count ( )
inlineprivate

Definition at line 17998 of file gtest.h.

◆ Passed()

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

◆ RecordProperty()

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

◆ set_elapsed_time()

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

Definition at line 17974 of file gtest.h.

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

◆ test_part_results()

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

Definition at line 17964 of file gtest.h.

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

◆ test_properties()

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

Definition at line 17969 of file gtest.h.

◆ test_property_count()

int testing::TestResult::test_property_count ( ) const

◆ total_part_count()

int testing::TestResult::total_part_count ( ) const

◆ ValidateTestProperty()

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

Friends And Related Function Documentation

◆ internal::DefaultGlobalTestPartResultReporter

Definition at line 17957 of file gtest.h.

◆ internal::ExecDeathTest

friend class internal::ExecDeathTest
friend

Definition at line 17958 of file gtest.h.

◆ internal::TestResultAccessor

friend class internal::TestResultAccessor
friend

Definition at line 17959 of file gtest.h.

◆ internal::UnitTestImpl

friend class internal::UnitTestImpl
friend

Definition at line 17960 of file gtest.h.

◆ internal::WindowsDeathTest

friend class internal::WindowsDeathTest
friend

Definition at line 17961 of file gtest.h.

◆ TestCase

friend class TestCase
friend

Definition at line 17955 of file gtest.h.

◆ TestInfo

friend class TestInfo
friend

Definition at line 17954 of file gtest.h.

◆ UnitTest

friend class UnitTest
friend

Definition at line 17956 of file gtest.h.

Member Data Documentation

◆ death_test_count_

int testing::TestResult::death_test_count_
private

Definition at line 18015 of file gtest.h.

Referenced by Clear().

◆ elapsed_time_

TimeInMillis testing::TestResult::elapsed_time_
private

Definition at line 18017 of file gtest.h.

Referenced by Clear().

◆ test_part_results_

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

◆ test_properites_mutex_

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

Definition at line 18008 of file gtest.h.

Referenced by RecordProperty().

◆ test_properties_

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

Definition at line 18013 of file gtest.h.

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


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