Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::TestInfo Class Reference

#include <gtest.h>

Public Member Functions

 ~TestInfo ()
 
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
 

Friends

class Test
 
class TestCase
 
class internal::UnitTestImpl
 
class internal::StreamingListenerTest
 
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)
 

Detailed Description

Definition at line 670 of file gtest.h.

Constructor & Destructor Documentation

◆ ~TestInfo()

testing::TestInfo::~TestInfo ( )

Definition at line 2539 of file gtest.cc.

2539{ delete factory_; }

Member Function Documentation

◆ file()

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

Definition at line 699 of file gtest.h.

699{ return location_.file.c_str(); }

◆ is_in_another_shard()

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

Definition at line 705 of file gtest.h.

705{ return is_in_another_shard_; }

◆ is_reportable()

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

Definition at line 726 of file gtest.h.

726 {
727 // The XML report includes tests matching the filter, excluding those
728 // run in other shards.
729 return matches_filter_ && !is_in_another_shard_;
730 }

◆ line()

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

Definition at line 702 of file gtest.h.

702{ return location_.line; }

◆ name()

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

Definition at line 680 of file gtest.h.

680{ return name_.c_str(); }
Here is the caller graph for this function:

◆ result()

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

Definition at line 733 of file gtest.h.

733{ return &result_; }
Here is the caller graph for this function:

◆ should_run()

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

Definition at line 723 of file gtest.h.

723{ return should_run_; }
Here is the caller graph for this function:

◆ test_case_name()

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

Definition at line 677 of file gtest.h.

677{ return test_case_name_.c_str(); }
Here is the caller graph for this function:

◆ type_param()

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

Definition at line 684 of file gtest.h.

684 {
685 if (type_param_.get() != NULL)
686 return type_param_->c_str();
687 return NULL;
688 }
Here is the caller graph for this function:

◆ value_param()

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

Definition at line 692 of file gtest.h.

692 {
693 if (value_param_.get() != NULL)
694 return value_param_->c_str();
695 return NULL;
696 }
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ internal::MakeAndRegisterTestInfo

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::StreamingListenerTest

friend class internal::StreamingListenerTest
friend

Definition at line 742 of file gtest.h.

◆ internal::UnitTestImpl

Definition at line 741 of file gtest.h.

◆ Test

friend class Test
friend

Definition at line 739 of file gtest.h.

◆ TestCase

friend class TestCase
friend

Definition at line 740 of file gtest.h.


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