Analysis Software
Documentation for sPHENIX simulation software
|
#include <JETSCAPE/blob/main/external_packages/googletest/googletest/include/gtest/gtest.h>
Public Member Functions | |
int | Run () GTEST_MUST_USE_RESULT_ |
const char * | original_working_dir () const |
const TestCase * | current_test_case () const GTEST_LOCK_EXCLUDED_(mutex_) |
const TestInfo * | current_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 TestCase * | GetTestCase (int i) const |
const TestResult & | ad_hoc_test_result () const |
TestEventListeners & | listeners () |
Static Public Member Functions | |
static UnitTest * | GetInstance () |
Private Member Functions | |
Environment * | AddEnvironment (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) |
TestCase * | GetMutableTestCase (int i) |
internal::UnitTestImpl * | impl () |
const internal::UnitTestImpl * | impl () 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::UnitTestImpl * | impl_ |
Friends | |
class | Test |
class | internal::AssertHelper |
class | internal::ScopedTrace |
class | internal::StreamingListenerTest |
class | internal::UnitTestRecordPropertyTestHelper |
Environment * | AddGlobalTestEnvironment (Environment *env) |
internal::UnitTestImpl * | internal::GetUnitTestImpl () |
void | internal::ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message) |
Definition at line 1151 of file gtest.h.
View newest version in sPHENIX GitHub at line 1151 of file gtest.h
|
private |
|
privatevirtual |
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().
|
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().
|
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().
const TestCase * testing::UnitTest::current_test_case | ( | ) | const |
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().
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().
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().
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().
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().
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().
|
static |
Definition at line 3972 of file gtest.cc.
View newest version in sPHENIX GitHub at line 3972 of file gtest.cc
References UnitTest().
Referenced by testing::AddGlobalTestEnvironment(), testing::internal::UnitTestHelper::FindTestCase(), testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), testing::internal::UnitTestHelper::GetSortedTestCases(), testing::internal::GetUnitTestImpl(), testing::internal::Log(), testing::internal::AssertHelper::operator=(), testing::Test::RecordProperty(), testing::internal::ReportFailureInUnknownLocation(), testing::TestInfo::Run(), testing::TestCase::Run(), testing::internal::ScopedTrace::ScopedTrace(), testing::CurrentTestInfoTest::SetUpTestCase(), testing::internal::FinalSuccessChecker::TearDown(), testing::CurrentTestInfoTest::TearDownTestCase(), testing::internal::TEST(), TEST(), testing::TEST_F(), and testing::internal::ScopedTrace::~ScopedTrace().
|
private |
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().
|
private |
|
inlineprivate |
Definition at line 1287 of file gtest.h.
View newest version in sPHENIX GitHub at line 1287 of file gtest.h
Referenced by ad_hoc_test_result(), disabled_test_count(), elapsed_time(), Failed(), failed_test_case_count(), failed_test_count(), GetMutableTestCase(), GetTestCase(), testing::internal::GetUnitTestImpl(), listeners(), testing::internal::AssertHelper::operator=(), Passed(), reportable_disabled_test_count(), reportable_test_count(), Run(), start_timestamp(), successful_test_case_count(), successful_test_count(), test_case_to_run_count(), test_to_run_count(), total_test_case_count(), and total_test_count().
|
inlineprivate |
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().
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_.
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().
|
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().
|
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().
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().
|
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().
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().
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().
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.
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().
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().
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().
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().
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().
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().
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().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
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().
|
mutableprivate |