Xmipp  v3.23.11-Nereus
Public Member Functions | Friends | List of all members
testing::TestInfo Class Reference

#include <gtest.h>

Public Member Functions

 ~TestInfo ()
 
const char * test_suite_name () const
 
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 TestSuite
 
class internal::UnitTestImpl
 
class internal::StreamingListenerTest
 
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)
 

Detailed Description

Definition at line 532 of file gtest.h.

Constructor & Destructor Documentation

◆ ~TestInfo()

testing::TestInfo::~TestInfo ( )

Member Function Documentation

◆ file()

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

Definition at line 564 of file gtest.h.

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

◆ is_in_another_shard()

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

Definition at line 570 of file gtest.h.

570 { return is_in_another_shard_; }

◆ is_reportable()

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

Definition at line 591 of file gtest.h.

591  {
592  // The XML report includes tests matching the filter, excluding those
593  // run in other shards.
594  return matches_filter_ && !is_in_another_shard_;
595  }

◆ line()

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

Definition at line 567 of file gtest.h.

567 { return location_.line; }

◆ name()

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

Definition at line 547 of file gtest.h.

547 { return name_.c_str(); }

◆ result()

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

Definition at line 598 of file gtest.h.

598 { return &result_; }

◆ should_run()

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

Definition at line 588 of file gtest.h.

588 { return should_run_; }

◆ test_case_name()

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

Definition at line 543 of file gtest.h.

543 { return test_suite_name(); }
const char * test_suite_name() const
Definition: gtest.h:539

◆ test_suite_name()

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

Definition at line 539 of file gtest.h.

539 { return test_suite_name_.c_str(); }

◆ type_param()

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

Definition at line 551 of file gtest.h.

551  {
552  if (type_param_.get() != nullptr) return type_param_->c_str();
553  return nullptr;
554  }

◆ value_param()

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

Definition at line 558 of file gtest.h.

558  {
559  if (value_param_.get() != nullptr) return value_param_->c_str();
560  return nullptr;
561  }

Friends And Related Function Documentation

◆ internal::MakeAndRegisterTestInfo

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

friend class internal::StreamingListenerTest
friend

Definition at line 607 of file gtest.h.

◆ internal::UnitTestImpl

friend class internal::UnitTestImpl
friend

Definition at line 606 of file gtest.h.

◆ Test

friend class Test
friend

Definition at line 604 of file gtest.h.

◆ TestSuite

friend class TestSuite
friend

Definition at line 605 of file gtest.h.


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