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

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

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestInfo)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestInfo)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestInfo)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestInfo)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestInfo)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestInfo)
 
int increment_death_test_count ()
 
int increment_death_test_count ()
 
int increment_death_test_count ()
 
int increment_death_test_count ()
 
int increment_death_test_count ()
 
int increment_death_test_count ()
 
void Run ()
 
void Run ()
 
void Run ()
 
void Run ()
 
void Run ()
 
void Run ()
 
void Skip ()
 
void Skip ()
 
 TestInfo (const std::string &test_case_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)
 
 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)
 
 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)
 
 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)
 
 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)
 
 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)
 

Static Private Member Functions

static void ClearTestResult (TestInfo *test_info)
 
static void ClearTestResult (TestInfo *test_info)
 
static void ClearTestResult (TestInfo *test_info)
 
static void ClearTestResult (TestInfo *test_info)
 
static void ClearTestResult (TestInfo *test_info)
 
static void ClearTestResult (TestInfo *test_info)
 

Private Attributes

internal::TestFactoryBase *const factory_
 
const internal::TypeId fixture_class_id_
 
bool is_disabled_
 
bool is_in_another_shard_
 
internal::CodeLocation location_
 
bool matches_filter_
 
const std::string name_
 
TestResult result_
 
bool should_run_
 
const std::string test_case_name_
 
const std::string test_suite_name_
 
const std::unique_ptr< const ::std::string > type_param_
 
const internal::scoped_ptr< const ::std::string > type_param_
 
const std::unique_ptr< const ::std::string > value_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::CodeLocation code_location, internal::TypeId fixture_class_id, Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc, internal::TestFactoryBase *factory)
 
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)
 
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)
 
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)
 
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)
 
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)
 
class internal::StreamingListenerTest
 
class internal::UnitTestImpl
 
class Test
 
class TestCase
 
class TestSuite
 

Detailed Description

Definition at line 695 of file bloaty/third_party/googletest/googletest/include/gtest/gtest.h.

Constructor & Destructor Documentation

◆ ~TestInfo() [1/6]

testing::TestInfo::~TestInfo ( )

◆ TestInfo() [1/6]

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

◆ ~TestInfo() [2/6]

testing::TestInfo::~TestInfo ( )

◆ TestInfo() [2/6]

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

◆ ~TestInfo() [3/6]

testing::TestInfo::~TestInfo ( )

◆ TestInfo() [3/6]

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

◆ ~TestInfo() [4/6]

testing::TestInfo::~TestInfo ( )

◆ TestInfo() [4/6]

testing::TestInfo::TestInfo ( const std::string &  test_case_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

◆ ~TestInfo() [5/6]

testing::TestInfo::~TestInfo ( )

◆ TestInfo() [5/6]

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

◆ ~TestInfo() [6/6]

testing::TestInfo::~TestInfo ( )

◆ TestInfo() [6/6]

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

Member Function Documentation

◆ ClearTestResult() [1/6]

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

Definition at line 626 of file googletest/googletest/include/gtest/gtest.h.

◆ ClearTestResult() [2/6]

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

◆ ClearTestResult() [3/6]

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

◆ ClearTestResult() [4/6]

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

◆ ClearTestResult() [5/6]

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

◆ ClearTestResult() [6/6]

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

◆ file() [1/6]

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

Definition at line 553 of file googletest/googletest/include/gtest/gtest.h.

◆ file() [2/6]

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

◆ file() [3/6]

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

◆ file() [4/6]

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

◆ file() [5/6]

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

◆ file() [6/6]

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

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [1/6]

testing::TestInfo::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestInfo  )
private

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [2/6]

testing::TestInfo::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestInfo  )
private

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [3/6]

testing::TestInfo::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestInfo  )
private

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [4/6]

testing::TestInfo::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestInfo  )
private

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [5/6]

testing::TestInfo::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestInfo  )
private

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [6/6]

testing::TestInfo::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestInfo  )
private

◆ increment_death_test_count() [1/6]

int testing::TestInfo::increment_death_test_count ( )
inlineprivate

Definition at line 615 of file googletest/googletest/include/gtest/gtest.h.

◆ increment_death_test_count() [2/6]

int testing::TestInfo::increment_death_test_count ( )
inlineprivate

◆ increment_death_test_count() [3/6]

int testing::TestInfo::increment_death_test_count ( )
inlineprivate

◆ increment_death_test_count() [4/6]

int testing::TestInfo::increment_death_test_count ( )
inlineprivate

◆ increment_death_test_count() [5/6]

int testing::TestInfo::increment_death_test_count ( )
inlineprivate

◆ increment_death_test_count() [6/6]

int testing::TestInfo::increment_death_test_count ( )
inlineprivate

◆ is_in_another_shard() [1/5]

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

Definition at line 559 of file googletest/googletest/include/gtest/gtest.h.

◆ is_in_another_shard() [2/5]

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

◆ is_in_another_shard() [3/5]

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

◆ is_in_another_shard() [4/5]

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

◆ is_in_another_shard() [5/5]

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

◆ is_reportable() [1/6]

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

Definition at line 580 of file googletest/googletest/include/gtest/gtest.h.

◆ is_reportable() [2/6]

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

◆ is_reportable() [3/6]

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

◆ is_reportable() [4/6]

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

◆ is_reportable() [5/6]

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

◆ is_reportable() [6/6]

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

◆ line() [1/6]

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

Definition at line 556 of file googletest/googletest/include/gtest/gtest.h.

◆ line() [2/6]

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

◆ line() [3/6]

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

◆ line() [4/6]

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

◆ line() [5/6]

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

◆ line() [6/6]

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

◆ name() [1/6]

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

Definition at line 536 of file googletest/googletest/include/gtest/gtest.h.

◆ name() [2/6]

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

◆ name() [3/6]

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

◆ name() [4/6]

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

◆ name() [5/6]

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

◆ name() [6/6]

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

◆ result() [1/6]

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

Definition at line 587 of file googletest/googletest/include/gtest/gtest.h.

◆ result() [2/6]

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

◆ result() [3/6]

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

◆ result() [4/6]

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

◆ result() [5/6]

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

◆ result() [6/6]

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

◆ Run() [1/6]

void testing::TestInfo::Run ( )
private

◆ Run() [2/6]

void testing::TestInfo::Run ( )
private

◆ Run() [3/6]

void testing::TestInfo::Run ( )
private

◆ Run() [4/6]

void testing::TestInfo::Run ( )
private

◆ Run() [5/6]

void testing::TestInfo::Run ( )
private

◆ Run() [6/6]

void testing::TestInfo::Run ( )
private

◆ should_run() [1/6]

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

Definition at line 577 of file googletest/googletest/include/gtest/gtest.h.

◆ should_run() [2/6]

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

◆ should_run() [3/6]

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

◆ should_run() [4/6]

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

◆ should_run() [5/6]

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

◆ should_run() [6/6]

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

◆ Skip() [1/2]

void testing::TestInfo::Skip ( )
private

◆ Skip() [2/2]

void testing::TestInfo::Skip ( )
private

◆ test_case_name() [1/6]

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

Definition at line 532 of file googletest/googletest/include/gtest/gtest.h.

◆ test_case_name() [2/6]

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

◆ test_case_name() [3/6]

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

◆ test_case_name() [4/6]

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

◆ test_case_name() [5/6]

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

◆ test_case_name() [6/6]

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

◆ test_suite_name() [1/5]

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

Definition at line 528 of file googletest/googletest/include/gtest/gtest.h.

◆ test_suite_name() [2/5]

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

◆ test_suite_name() [3/5]

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

◆ test_suite_name() [4/5]

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

◆ test_suite_name() [5/5]

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

◆ type_param() [1/6]

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

Definition at line 540 of file googletest/googletest/include/gtest/gtest.h.

◆ type_param() [2/6]

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

◆ type_param() [3/6]

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

◆ type_param() [4/6]

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

◆ type_param() [5/6]

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

◆ type_param() [6/6]

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

◆ value_param() [1/6]

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

Definition at line 547 of file googletest/googletest/include/gtest/gtest.h.

◆ value_param() [2/6]

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

◆ value_param() [3/6]

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

◆ value_param() [4/6]

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

◆ value_param() [5/6]

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

◆ value_param() [6/6]

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

Friends And Related Function Documentation

◆ internal::MakeAndRegisterTestInfo [1/6]

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

◆ internal::MakeAndRegisterTestInfo [2/6]

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

◆ internal::MakeAndRegisterTestInfo [3/6]

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

◆ internal::MakeAndRegisterTestInfo [4/6]

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

◆ internal::MakeAndRegisterTestInfo [5/6]

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

◆ internal::MakeAndRegisterTestInfo [6/6]

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

◆ internal::StreamingListenerTest

internal::StreamingListenerTest
friend

◆ internal::UnitTestImpl

◆ Test

Test
friend

◆ TestCase

friend class TestCase
friend

◆ TestSuite

TestSuite
friend

Member Data Documentation

◆ factory_

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

◆ fixture_class_id_

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

◆ is_disabled_

bool testing::TestInfo::is_disabled_
private

◆ is_in_another_shard_

bool testing::TestInfo::is_in_another_shard_
private

◆ location_

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

◆ matches_filter_

bool testing::TestInfo::matches_filter_
private

◆ name_

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

◆ result_

TestResult testing::TestInfo::result_
private

◆ should_run_

bool testing::TestInfo::should_run_
private

◆ test_case_name_

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

◆ test_suite_name_

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

◆ type_param_ [1/2]

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

◆ type_param_ [2/2]

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

◆ value_param_ [1/2]

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

◆ value_param_ [2/2]

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

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:45