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

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

+ Collaboration diagram for testing::UnitTest:

Public Member Functions

int Run () GTEST_MUST_USE_RESULT_
 
const char * original_working_dir () const
 
const TestCasecurrent_test_case () const GTEST_LOCK_EXCLUDED_(mutex_)
 
const TestInfocurrent_test_info () const GTEST_LOCK_EXCLUDED_(mutex_)
 
int random_seed () const
 
int successful_test_case_count () const
 
int failed_test_case_count () const
 
int total_test_case_count () const
 
int test_case_to_run_count () const
 
int successful_test_count () const
 
int failed_test_count () const
 
int reportable_disabled_test_count () const
 
int disabled_test_count () const
 
int reportable_test_count () const
 
int total_test_count () const
 
int test_to_run_count () const
 
TimeInMillis start_timestamp () const
 
TimeInMillis elapsed_time () const
 
bool Passed () const
 
bool Failed () const
 
const TestCaseGetTestCase (int i) const
 
const TestResultad_hoc_test_result () const
 
TestEventListenerslisteners ()
 

Static Public Member Functions

static UnitTestGetInstance ()
 

Private Member Functions

EnvironmentAddEnvironment (Environment *env)
 
void AddTestPartResult (TestPartResult::Type result_type, const char *file_name, int line_number, const std::string &message, const std::string &os_stack_trace) GTEST_LOCK_EXCLUDED_(mutex_)
 
void RecordProperty (const std::string &key, const std::string &value)
 
TestCaseGetMutableTestCase (int i)
 
internal::UnitTestImplimpl ()
 
const internal::UnitTestImplimpl () const
 
 UnitTest ()
 
virtual ~UnitTest ()
 
void PushGTestTrace (const internal::TraceInfo &trace) GTEST_LOCK_EXCLUDED_(mutex_)
 
void PopGTestTrace () GTEST_LOCK_EXCLUDED_(mutex_)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (UnitTest)
 

Private Attributes

internal::Mutex mutex_
 
internal::UnitTestImplimpl_
 

Friends

class Test
 
class internal::AssertHelper
 
class internal::ScopedTrace
 
class internal::StreamingListenerTest
 
class internal::UnitTestRecordPropertyTestHelper
 
EnvironmentAddGlobalTestEnvironment (Environment *env)
 
internal::UnitTestImplinternal::GetUnitTestImpl ()
 
void internal::ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message)
 

Detailed Description

Definition at line 1151 of file gtest.h.

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

Constructor & Destructor Documentation

testing::UnitTest::UnitTest ( )
private

Definition at line 4299 of file gtest.cc.

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

References impl_.

Referenced by GetInstance().

+ Here is the caller graph for this function:

testing::UnitTest::~UnitTest ( )
privatevirtual

Definition at line 4304 of file gtest.cc.

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

References impl_.

Member Function Documentation

const TestResult & testing::UnitTest::ad_hoc_test_result ( ) const

Definition at line 4069 of file gtest.cc.

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

References testing::internal::UnitTestImpl::ad_hoc_test_result(), and impl().

Referenced by testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Environment * testing::UnitTest::AddEnvironment ( Environment env)
private

Definition at line 4095 of file gtest.cc.

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

References conf::env, testing::internal::UnitTestImpl::environments(), and impl_.

Referenced by testing::AddGlobalTestEnvironment().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::UnitTest::AddTestPartResult ( TestPartResult::Type  result_type,
const char *  file_name,
int  line_number,
const std::string &  message,
const std::string &  os_stack_trace 
)
private

Definition at line 4108 of file gtest.cc.

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

References testing::internal::TraceInfo::file, testing::internal::FormatFileLocation(), testing::Message::GetString(), GTEST_FLAG, GTEST_NAME_, i, testing::internal::kStackTraceMarker, testing::TestPartResult::kSuccess, testing::internal::TraceInfo::line, gtest_output_test::message, testing::internal::TraceInfo::message, and TauVsDIS_MachineLearning_Differentiation::msg.

Referenced by testing::internal::ReportFailureInUnknownLocation().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const TestCase * testing::UnitTest::current_test_case ( ) const

Definition at line 4271 of file gtest.cc.

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

References testing::internal::UnitTestImpl::current_test_case(), and impl_.

+ Here is the call graph for this function:

const TestInfo * testing::UnitTest::current_test_info ( ) const

Definition at line 4279 of file gtest.cc.

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

References testing::internal::UnitTestImpl::current_test_info(), and impl_.

Referenced by testing::CurrentTestInfoTest::SetUpTestCase(), testing::CurrentTestInfoTest::TearDownTestCase(), and testing::TEST_F().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int testing::UnitTest::disabled_test_count ( ) const

Definition at line 4028 of file gtest.cc.

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

References testing::internal::UnitTestImpl::disabled_test_count(), and impl().

Referenced by testing::internal::TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

internal::TimeInMillis testing::UnitTest::elapsed_time ( ) const

Definition at line 4050 of file gtest.cc.

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

References testing::internal::UnitTestImpl::elapsed_time(), and impl().

Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), and testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool testing::UnitTest::Failed ( ) const

Definition at line 4059 of file gtest.cc.

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

References testing::internal::UnitTestImpl::Failed(), and impl().

Referenced by testing::internal::FinalSuccessChecker::TearDown().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int testing::UnitTest::failed_test_case_count ( ) const

Definition at line 3999 of file gtest.cc.

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

References testing::internal::UnitTestImpl::failed_test_case_count(), and impl().

Referenced by testing::internal::FinalSuccessChecker::TearDown().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int testing::UnitTest::failed_test_count ( ) const

Definition at line 4020 of file gtest.cc.

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

References testing::internal::UnitTestImpl::failed_test_count(), and impl().

Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest(), and testing::internal::FinalSuccessChecker::TearDown().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TestCase * testing::UnitTest::GetMutableTestCase ( int  i)
private

Definition at line 4075 of file gtest.cc.

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

References testing::internal::UnitTestImpl::GetMutableTestCase(), and impl().

+ Here is the call graph for this function:

const TestCase * testing::UnitTest::GetTestCase ( int  i) const

Definition at line 4063 of file gtest.cc.

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

References testing::internal::UnitTestImpl::GetTestCase(), and impl().

Referenced by testing::internal::UnitTestHelper::FindTestCase(), testing::internal::UnitTestHelper::GetSortedTestCases(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), and testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

testing::UnitTest::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( UnitTest  )
private
internal::UnitTestImpl* testing::UnitTest::impl ( )
inlineprivate
const internal::UnitTestImpl* testing::UnitTest::impl ( ) const
inlineprivate

Definition at line 1288 of file gtest.h.

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

TestEventListeners & testing::UnitTest::listeners ( )

Definition at line 4081 of file gtest.cc.

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

References impl(), and testing::internal::UnitTestImpl::listeners().

Referenced by testing::TestInfo::Run(), and testing::TestCase::Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char * testing::UnitTest::original_working_dir ( ) const

Definition at line 4265 of file gtest.cc.

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

References testing::internal::FilePath::c_str(), impl_, and testing::internal::UnitTestImpl::original_working_dir_.

+ Here is the call graph for this function:

bool testing::UnitTest::Passed ( ) const

Definition at line 4055 of file gtest.cc.

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

References impl(), and testing::internal::UnitTestImpl::Passed().

Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), and testing::internal::FinalSuccessChecker::TearDown().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::UnitTest::PopGTestTrace ( )
private

Definition at line 4317 of file gtest.cc.

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

References testing::internal::UnitTestImpl::gtest_trace_stack(), and impl_.

Referenced by testing::internal::ScopedTrace::~ScopedTrace().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::UnitTest::PushGTestTrace ( const internal::TraceInfo trace)
private

Definition at line 4310 of file gtest.cc.

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

Referenced by testing::internal::ScopedTrace::ScopedTrace().

+ Here is the caller graph for this function:

int testing::UnitTest::random_seed ( ) const

Definition at line 4286 of file gtest.cc.

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

References impl_, and testing::internal::UnitTestImpl::random_seed().

Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(), and testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::UnitTest::RecordProperty ( const std::string &  key,
const std::string &  value 
)
private

Definition at line 4175 of file gtest.cc.

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

References impl_, and testing::internal::UnitTestImpl::RecordProperty().

Referenced by testing::Test::RecordProperty(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int testing::UnitTest::reportable_disabled_test_count ( ) const

Definition at line 4023 of file gtest.cc.

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

References impl(), and testing::internal::UnitTestImpl::reportable_disabled_test_count().

Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), and testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int testing::UnitTest::reportable_test_count ( ) const

Definition at line 4033 of file gtest.cc.

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

References impl(), and testing::internal::UnitTestImpl::reportable_test_count().

Referenced by testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int testing::UnitTest::Run ( )

Definition at line 4185 of file gtest.cc.

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

References testing::internal::posix::GetEnv(), GTEST_FLAG, testing::internal::HandleExceptionsInMethodIfSupported(), impl(), testing::internal::UnitTestImpl::RunAllTests(), testing::internal::UnitTestImpl::set_catch_exceptions(), and x0.

+ Here is the call graph for this function:

internal::TimeInMillis testing::UnitTest::start_timestamp ( ) const

Definition at line 4045 of file gtest.cc.

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

References impl(), and testing::internal::UnitTestImpl::start_timestamp().

Referenced by testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int testing::UnitTest::successful_test_case_count ( ) const

Definition at line 3994 of file gtest.cc.

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

References impl(), and testing::internal::UnitTestImpl::successful_test_case_count().

Referenced by testing::internal::FinalSuccessChecker::TearDown().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int testing::UnitTest::successful_test_count ( ) const

Definition at line 4015 of file gtest.cc.

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

References impl(), and testing::internal::UnitTestImpl::successful_test_count().

Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), and testing::internal::FinalSuccessChecker::TearDown().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int testing::UnitTest::test_case_to_run_count ( ) const

Definition at line 4010 of file gtest.cc.

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

References impl(), and testing::internal::UnitTestImpl::test_case_to_run_count().

Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(), and testing::internal::TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int testing::UnitTest::test_to_run_count ( ) const

Definition at line 4041 of file gtest.cc.

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

References impl(), and testing::internal::UnitTestImpl::test_to_run_count().

Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(), and testing::internal::TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int testing::UnitTest::total_test_case_count ( ) const

Definition at line 4004 of file gtest.cc.

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

References impl(), and testing::internal::UnitTestImpl::total_test_case_count().

Referenced by testing::internal::UnitTestHelper::FindTestCase(), testing::internal::UnitTestHelper::GetSortedTestCases(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest(), testing::internal::FinalSuccessChecker::TearDown(), and testing::internal::TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int testing::UnitTest::total_test_count ( ) const

Definition at line 4038 of file gtest.cc.

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

References impl(), and testing::internal::UnitTestImpl::total_test_count().

Referenced by testing::internal::TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

Environment* AddGlobalTestEnvironment ( Environment env)
friend

Definition at line 1350 of file gtest.h.

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

friend class internal::AssertHelper
friend

Definition at line 1293 of file gtest.h.

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

void internal::ReportFailureInUnknownLocation ( TestPartResult::Type  result_type,
const std::string &  message 
)
friend
friend class internal::ScopedTrace
friend

Definition at line 1294 of file gtest.h.

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

friend class internal::StreamingListenerTest
friend

Definition at line 1295 of file gtest.h.

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

Definition at line 1296 of file gtest.h.

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

friend class Test
friend

Definition at line 1292 of file gtest.h.

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

Member Data Documentation

internal::UnitTestImpl* testing::UnitTest::impl_
private

Definition at line 1326 of file gtest.h.

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

Referenced by AddEnvironment(), current_test_case(), current_test_info(), original_working_dir(), PopGTestTrace(), random_seed(), RecordProperty(), UnitTest(), and ~UnitTest().

internal::Mutex testing::UnitTest::mutex_
mutableprivate

Definition at line 1320 of file gtest.h.

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


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