Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::TestInfoTest Class Reference
Inheritance diagram for testing::TestInfoTest:
Collaboration diagram for testing::TestInfoTest:

Static Protected Member Functions

static const TestInfoGetTestInfo (const char *test_name)
 
static const TestResultGetTestResult (const TestInfo *test_info)
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Detailed Description

Definition at line 5331 of file gtest_unittest.cc.

Member Function Documentation

◆ GetTestInfo()

static const TestInfo * testing::TestInfoTest::GetTestInfo ( const char * test_name)
inlinestaticprotected

Definition at line 5333 of file gtest_unittest.cc.

5333 {
5334 const TestCase* const test_case = GetUnitTestImpl()->
5335 GetTestCase("TestInfoTest", "", NULL, NULL);
5336
5337 for (int i = 0; i < test_case->total_test_count(); ++i) {
5338 const TestInfo* const test_info = test_case->GetTestInfo(i);
5339 if (strcmp(test_name, test_info->name()) == 0)
5340 return test_info;
5341 }
5342 return NULL;
5343 }
const TestInfo * GetTestInfo(int i) const
Definition gtest.cc:2751
int total_test_count() const
Definition gtest.cc:2719
const char * name() const
Definition gtest.h:680
Here is the call graph for this function:

◆ GetTestResult()

static const TestResult * testing::TestInfoTest::GetTestResult ( const TestInfo * test_info)
inlinestaticprotected

Definition at line 5345 of file gtest_unittest.cc.

5346 {
5347 return test_info->result();
5348 }
const TestResult * result() const
Definition gtest.h:733
Here is the call graph for this function:

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