Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testing::TestInfo Class Reference

#include <JETSCAPE/blob/main/external_packages/googletest/googletest/include/gtest/gtest.h>

+ Collaboration diagram for testing::TestInfo:

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 should_run () const
 
bool is_reportable () const
 
const TestResultresult () const
 

Private Member Functions

 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)
 
int increment_death_test_count ()
 
void Run ()
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestInfo)
 

Static Private Member Functions

static void ClearTestResult (TestInfo *test_info)
 

Private Attributes

const std::string test_case_name_
 
const std::string name_
 
const internal::scoped_ptr
< const ::std::string > 
type_param_
 
const internal::scoped_ptr
< const ::std::string > 
value_param_
 
internal::CodeLocation location_
 
const internal::TypeId fixture_class_id_
 
bool should_run_
 
bool is_disabled_
 
bool matches_filter_
 
internal::TestFactoryBase *const factory_
 
TestResult result_
 

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

View newest version in sPHENIX GitHub at line 644 of file gtest.h

Constructor & Destructor Documentation

testing::TestInfo::~TestInfo ( )

Definition at line 2521 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2521 of file gtest.cc

References factory_.

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

Definition at line 2501 of file gtest.cc.

View newest version in sPHENIX GitHub at line 2501 of file gtest.cc

Member Function Documentation

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

Definition at line 746 of file gtest.h.

View newest version in sPHENIX GitHub at line 746 of file gtest.h

References testing::TestResult::Clear(), and result_.

Referenced by testing::TestCase::ClearResult().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 673 of file gtest.h.

View newest version in sPHENIX GitHub at line 673 of file gtest.h

Referenced by conftest.RootHashAssertionError::__init__().

+ Here is the caller graph for this function:

testing::TestInfo::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestInfo  )
private
int testing::TestInfo::increment_death_test_count ( )
inlineprivate

Definition at line 738 of file gtest.h.

View newest version in sPHENIX GitHub at line 738 of file gtest.h

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

Definition at line 697 of file gtest.h.

View newest version in sPHENIX GitHub at line 697 of file gtest.h

Referenced by testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase(), testing::TestCase::TestReportable(), and testing::TestCase::TestReportableDisabled().

+ Here is the caller graph for this function:

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

Definition at line 676 of file gtest.h.

View newest version in sPHENIX GitHub at line 676 of file gtest.h

Referenced by item.Item::__eq__(), and item.Item::__hash__().

+ Here is the caller graph for this function:

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

Definition at line 705 of file gtest.h.

View newest version in sPHENIX GitHub at line 705 of file gtest.h

Referenced by testing::TestInfoTest::GetTestResult(), testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), testing::internal::FinalSuccessChecker::TearDown(), testing::TestCase::TestFailed(), and testing::TestCase::TestPassed().

+ Here is the caller graph for this function:

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

Definition at line 694 of file gtest.h.

View newest version in sPHENIX GitHub at line 694 of file gtest.h

Referenced by testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), testing::TestCase::ShouldRunTest(), testing::TestCase::TestFailed(), and testing::TestCase::TestPassed().

+ Here is the caller graph for this function:

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

Definition at line 651 of file gtest.h.

View newest version in sPHENIX GitHub at line 651 of file gtest.h

Referenced by testing::internal::UnitTestImpl::AddTestInfo(), testing::Test::HasSameFixtureClass(), testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestStart(), and testing::TEST_F().

+ Here is the caller graph for this function:

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

Definition at line 658 of file gtest.h.

View newest version in sPHENIX GitHub at line 658 of file gtest.h

Referenced by testing::internal::UnitTestImpl::AddTestInfo(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), and testing::internal::PrintFullTestCommentIfPresent().

+ Here is the caller graph for this function:

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

Definition at line 666 of file gtest.h.

View newest version in sPHENIX GitHub at line 666 of file gtest.h

Referenced by testing::internal::UnitTestImpl::ListTestsMatchingFilter(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), and testing::internal::PrintFullTestCommentIfPresent().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

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
friend class internal::StreamingListenerTest
friend

Definition at line 714 of file gtest.h.

View newest version in sPHENIX GitHub at line 714 of file gtest.h

friend class internal::UnitTestImpl
friend

Definition at line 713 of file gtest.h.

View newest version in sPHENIX GitHub at line 713 of file gtest.h

friend class Test
friend

Definition at line 711 of file gtest.h.

View newest version in sPHENIX GitHub at line 711 of file gtest.h

friend class TestCase
friend

Definition at line 712 of file gtest.h.

View newest version in sPHENIX GitHub at line 712 of file gtest.h

Member Data Documentation

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

Definition at line 765 of file gtest.h.

View newest version in sPHENIX GitHub at line 765 of file gtest.h

Referenced by Run(), and ~TestInfo().

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

Definition at line 760 of file gtest.h.

View newest version in sPHENIX GitHub at line 760 of file gtest.h

Referenced by testing::Test::HasSameFixtureClass().

bool testing::TestInfo::is_disabled_
private

Definition at line 762 of file gtest.h.

View newest version in sPHENIX GitHub at line 762 of file gtest.h

Referenced by testing::internal::UnitTestImpl::FilterTests(), testing::TestCase::TestDisabled(), and testing::TestCase::TestReportableDisabled().

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

Definition at line 759 of file gtest.h.

View newest version in sPHENIX GitHub at line 759 of file gtest.h

bool testing::TestInfo::matches_filter_
private

Definition at line 763 of file gtest.h.

View newest version in sPHENIX GitHub at line 763 of file gtest.h

Referenced by testing::internal::UnitTestImpl::FilterTests(), and testing::internal::UnitTestImpl::ListTestsMatchingFilter().

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

Definition at line 752 of file gtest.h.

View newest version in sPHENIX GitHub at line 752 of file gtest.h

TestResult testing::TestInfo::result_
private

Definition at line 770 of file gtest.h.

View newest version in sPHENIX GitHub at line 770 of file gtest.h

Referenced by ClearTestResult(), testing::internal::UnitTestImpl::current_test_result(), testing::internal::UnitTestImpl::RecordProperty(), and Run().

bool testing::TestInfo::should_run_
private

Definition at line 761 of file gtest.h.

View newest version in sPHENIX GitHub at line 761 of file gtest.h

Referenced by testing::internal::UnitTestImpl::FilterTests(), and Run().

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

Definition at line 751 of file gtest.h.

View newest version in sPHENIX GitHub at line 751 of file gtest.h

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

Definition at line 755 of file gtest.h.

View newest version in sPHENIX GitHub at line 755 of file gtest.h

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

Definition at line 758 of file gtest.h.

View newest version in sPHENIX GitHub at line 758 of file gtest.h


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