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

Constructor & Destructor Documentation

◆ ~TestInfo()

testing::TestInfo::~TestInfo ( )

Definition at line 2198 of file gtest.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 2180 of file gtest.cc.

Member Function Documentation

◆ ClearTestResult()

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

Definition at line 715 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 707 of file gtest.h.

◆ is_reportable()

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

Definition at line 668 of file gtest.h.

◆ name()

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

Definition at line 631 of file gtest.h.

◆ result()

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

Definition at line 676 of file gtest.h.

◆ Run()

void testing::TestInfo::Run ( )
private

Definition at line 2303 of file gtest.cc.

◆ should_run()

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

Definition at line 665 of file gtest.h.

◆ test_case_name()

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

Definition at line 628 of file gtest.h.

◆ type_param()

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

Definition at line 635 of file gtest.h.

◆ value_param()

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

Definition at line 643 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 685 of file gtest.h.

◆ internal::UnitTestImpl

friend class internal::UnitTestImpl
friend

Definition at line 684 of file gtest.h.

◆ Test

friend class Test
friend

Definition at line 682 of file gtest.h.

◆ TestCase

friend class TestCase
friend

Definition at line 683 of file gtest.h.

Member Data Documentation

◆ factory_

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

Definition at line 733 of file gtest.h.

◆ fixture_class_id_

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

Definition at line 728 of file gtest.h.

◆ is_disabled_

bool testing::TestInfo::is_disabled_
private

Definition at line 730 of file gtest.h.

◆ matches_filter_

bool testing::TestInfo::matches_filter_
private

Definition at line 731 of file gtest.h.

◆ name_

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

Definition at line 721 of file gtest.h.

◆ result_

TestResult testing::TestInfo::result_
private

Definition at line 738 of file gtest.h.

◆ should_run_

bool testing::TestInfo::should_run_
private

Definition at line 729 of file gtest.h.

◆ test_case_name_

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

Definition at line 720 of file gtest.h.

◆ type_param_

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

Definition at line 724 of file gtest.h.

◆ value_param_

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

Definition at line 727 of file gtest.h.


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


fcl
Author(s):
autogenerated on Wed Feb 17 2021 03:40:11