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

bool is_reportable () const
 
const char * name () const
 
const TestResultresult () const
 
bool should_run () const
 
const char * test_case_name () const
 
const char * type_param () const
 
const char * value_param () const
 
 ~TestInfo ()
 

Private Member Functions

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

Static Private Member Functions

static void ClearTestResult (TestInfo *test_info)
 

Private Attributes

internal::TestFactoryBase *const factory_
 
const internal::TypeId fixture_class_id_
 
bool is_disabled_
 
bool matches_filter_
 
const std::string name_
 
TestResult result_
 
bool should_run_
 
const std::string test_case_name_
 
const internal::scoped_ptr< const ::std::string > type_param_
 
const internal::scoped_ptr< const ::std::string > value_param_
 

Friends

TestInfointernal::MakeAndRegisterTestInfo (const char *test_case_name, const char *name, const char *type_param, const char *value_param, internal::TypeId fixture_class_id, Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc, internal::TestFactoryBase *factory)
 
class internal::StreamingListenerTest
 
class internal::UnitTestImpl
 
class Test
 
class TestCase
 

Detailed Description

Definition at line 18034 of file gtest.h.

Constructor & Destructor Documentation

◆ ~TestInfo()

testing::TestInfo::~TestInfo ( )

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

◆ TestInfo()

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

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

Member Function Documentation

◆ ClearTestResult()

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

Definition at line 18128 of file gtest.h.

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_()

testing::TestInfo::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestInfo  )
private

◆ increment_death_test_count()

int testing::TestInfo::increment_death_test_count ( )
inlineprivate

Definition at line 18120 of file gtest.h.

◆ is_reportable()

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

Definition at line 18081 of file gtest.h.

◆ name()

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

Definition at line 18044 of file gtest.h.

◆ result()

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

Definition at line 18089 of file gtest.h.

◆ Run()

void testing::TestInfo::Run ( )
private

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

◆ should_run()

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

Definition at line 18078 of file gtest.h.

◆ test_case_name()

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

Definition at line 18041 of file gtest.h.

◆ type_param()

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

Definition at line 18048 of file gtest.h.

◆ value_param()

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

Definition at line 18056 of file gtest.h.

Friends And Related Function Documentation

◆ internal::MakeAndRegisterTestInfo

TestInfo* internal::MakeAndRegisterTestInfo ( const char *  test_case_name,
const char *  name,
const char *  type_param,
const char *  value_param,
internal::TypeId  fixture_class_id,
Test::SetUpTestCaseFunc  set_up_tc,
Test::TearDownTestCaseFunc  tear_down_tc,
internal::TestFactoryBase factory 
)
friend

◆ internal::StreamingListenerTest

friend class internal::StreamingListenerTest
friend

Definition at line 18098 of file gtest.h.

◆ internal::UnitTestImpl

friend class internal::UnitTestImpl
friend

Definition at line 18097 of file gtest.h.

◆ Test

friend class Test
friend

Definition at line 18095 of file gtest.h.

◆ TestCase

friend class TestCase
friend

Definition at line 18096 of file gtest.h.

Member Data Documentation

◆ factory_

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

Definition at line 18146 of file gtest.h.

◆ fixture_class_id_

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

Definition at line 18141 of file gtest.h.

◆ is_disabled_

bool testing::TestInfo::is_disabled_
private

Definition at line 18143 of file gtest.h.

◆ matches_filter_

bool testing::TestInfo::matches_filter_
private

Definition at line 18144 of file gtest.h.

◆ name_

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

Definition at line 18134 of file gtest.h.

◆ result_

TestResult testing::TestInfo::result_
private

Definition at line 18151 of file gtest.h.

◆ should_run_

bool testing::TestInfo::should_run_
private

Definition at line 18142 of file gtest.h.

◆ test_case_name_

const std::string testing::TestInfo::test_case_name_
private

Definition at line 18133 of file gtest.h.

◆ type_param_

const internal::scoped_ptr<const ::std::string> testing::TestInfo::type_param_
private

Definition at line 18137 of file gtest.h.

◆ value_param_

const internal::scoped_ptr<const ::std::string> testing::TestInfo::value_param_
private

Definition at line 18140 of file gtest.h.


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


self_test
Author(s): Kevin Watts, Brice Rebsamen , Jeremy Leibs and Blaise Gassend
autogenerated on Tue Nov 15 2022 03:17:24