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::TestInfo Class Reference

#include <gtest.h>

Public Member Functions

 ~TestInfo ()
 
const char * test_suite_name () const
 
const char * test_case_name () const
 
const char * name () const
 
const char * type_param () const
 
const char * value_param () const
 
const char * file () const
 
int line () const
 
bool is_in_another_shard () const
 
bool should_run () const
 
bool is_reportable () const
 
const TestResultresult () const
 

Private Member Functions

 TestInfo (const std::string &test_suite_name, const std::string &name, const char *a_type_param, const char *a_value_param, internal::CodeLocation a_code_location, internal::TypeId fixture_class_id, internal::TestFactoryBase *factory)
 
int increment_death_test_count ()
 
void Run ()
 
void Skip ()
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestInfo)
 

Static Private Member Functions

static void ClearTestResult (TestInfo *test_info)
 

Private Attributes

const std::string test_suite_name_
 
const std::string name_
 
const std::unique_ptr< const
::std::string > 
type_param_
 
const std::unique_ptr< const
::std::string > 
value_param_
 
internal::CodeLocation location_
 
const internal::TypeId fixture_class_id_
 
bool should_run_
 
bool is_disabled_
 
bool matches_filter_
 
bool is_in_another_shard_
 
internal::TestFactoryBase *const factory_
 
TestResult result_
 

Friends

class Test
 
class TestSuite
 
class internal::UnitTestImpl
 
class internal::StreamingListenerTest
 
TestInfointernal::MakeAndRegisterTestInfo (const char *test_suite_name, const char *name, const char *type_param, const char *value_param, internal::CodeLocation code_location, internal::TypeId fixture_class_id, internal::SetUpTestSuiteFunc set_up_tc, internal::TearDownTestSuiteFunc tear_down_tc, internal::TestFactoryBase *factory)
 

Detailed Description

Definition at line 703 of file gtest.h.

Constructor & Destructor Documentation

testing::TestInfo::~TestInfo ( )

Definition at line 2740 of file gtest.cc.

testing::TestInfo::TestInfo ( const std::string &  test_suite_name,
const std::string &  name,
const char *  a_type_param,
const char *  a_value_param,
internal::CodeLocation  a_code_location,
internal::TypeId  fixture_class_id,
internal::TestFactoryBase factory 
)
private

Definition at line 2721 of file gtest.cc.

Member Function Documentation

const char* testing::TestInfo::test_suite_name ( ) const
inline

Definition at line 710 of file gtest.h.

const char* testing::TestInfo::test_case_name ( ) const
inline

Definition at line 714 of file gtest.h.

const char* testing::TestInfo::name ( ) const
inline

Definition at line 718 of file gtest.h.

const char* testing::TestInfo::type_param ( ) const
inline

Definition at line 722 of file gtest.h.

const char* testing::TestInfo::value_param ( ) const
inline

Definition at line 729 of file gtest.h.

const char* testing::TestInfo::file ( ) const
inline

Definition at line 735 of file gtest.h.

int testing::TestInfo::line ( ) const
inline

Definition at line 738 of file gtest.h.

bool testing::TestInfo::is_in_another_shard ( ) const
inline

Definition at line 741 of file gtest.h.

bool testing::TestInfo::should_run ( ) const
inline

Definition at line 759 of file gtest.h.

bool testing::TestInfo::is_reportable ( ) const
inline

Definition at line 762 of file gtest.h.

const TestResult* testing::TestInfo::result ( ) const
inline

Definition at line 769 of file gtest.h.

int testing::TestInfo::increment_death_test_count ( )
inlineprivate

Definition at line 797 of file gtest.h.

void testing::TestInfo::Run ( )
private

Definition at line 2839 of file gtest.cc.

void testing::TestInfo::Skip ( )
private

Definition at line 2888 of file gtest.cc.

static void testing::TestInfo::ClearTestResult ( TestInfo test_info)
inlinestaticprivate

Definition at line 808 of file gtest.h.

testing::TestInfo::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestInfo  )
private

Friends And Related Function Documentation

friend class Test
friend

Definition at line 775 of file gtest.h.

friend class TestSuite
friend

Definition at line 776 of file gtest.h.

friend class internal::UnitTestImpl
friend

Definition at line 777 of file gtest.h.

friend class internal::StreamingListenerTest
friend

Definition at line 778 of file gtest.h.

TestInfo* internal::MakeAndRegisterTestInfo ( const char *  test_suite_name,
const char *  name,
const char *  type_param,
const char *  value_param,
internal::CodeLocation  code_location,
internal::TypeId  fixture_class_id,
internal::SetUpTestSuiteFunc  set_up_tc,
internal::TearDownTestSuiteFunc  tear_down_tc,
internal::TestFactoryBase factory 
)
friend

Member Data Documentation

const std::string testing::TestInfo::test_suite_name_
private

Definition at line 813 of file gtest.h.

const std::string testing::TestInfo::name_
private

Definition at line 814 of file gtest.h.

const std::unique_ptr<const ::std::string> testing::TestInfo::type_param_
private

Definition at line 817 of file gtest.h.

const std::unique_ptr<const ::std::string> testing::TestInfo::value_param_
private

Definition at line 820 of file gtest.h.

internal::CodeLocation testing::TestInfo::location_
private

Definition at line 821 of file gtest.h.

const internal::TypeId testing::TestInfo::fixture_class_id_
private

Definition at line 822 of file gtest.h.

bool testing::TestInfo::should_run_
private

Definition at line 823 of file gtest.h.

bool testing::TestInfo::is_disabled_
private

Definition at line 824 of file gtest.h.

bool testing::TestInfo::matches_filter_
private

Definition at line 825 of file gtest.h.

bool testing::TestInfo::is_in_another_shard_
private

Definition at line 827 of file gtest.h.

internal::TestFactoryBase* const testing::TestInfo::factory_
private

Definition at line 828 of file gtest.h.

TestResult testing::TestInfo::result_
private

Definition at line 833 of file gtest.h.


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