Analysis Software
Documentation for sPHENIX simulation software
|
#include <JETSCAPE/blob/main/external_packages/googletest/googletest/include/gtest/gtest.h>
Public Member Functions | |
TestCase (const char *name, const char *a_type_param, Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc) | |
virtual | ~TestCase () |
const char * | name () const |
const char * | type_param () const |
bool | should_run () 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 | test_to_run_count () const |
int | total_test_count () const |
bool | Passed () const |
bool | Failed () const |
TimeInMillis | elapsed_time () const |
const TestInfo * | GetTestInfo (int i) const |
const TestResult & | ad_hoc_test_result () const |
Private Member Functions | |
std::vector< TestInfo * > & | test_info_list () |
const std::vector< TestInfo * > & | test_info_list () const |
TestInfo * | GetMutableTestInfo (int i) |
void | set_should_run (bool should) |
void | AddTestInfo (TestInfo *test_info) |
void | ClearResult () |
void | Run () |
void | RunSetUpTestCase () |
void | RunTearDownTestCase () |
void | ShuffleTests (internal::Random *random) |
void | UnshuffleTests () |
GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestCase) | |
Static Private Member Functions | |
static void | ClearTestCaseResult (TestCase *test_case) |
static bool | TestPassed (const TestInfo *test_info) |
static bool | TestFailed (const TestInfo *test_info) |
static bool | TestReportableDisabled (const TestInfo *test_info) |
static bool | TestDisabled (const TestInfo *test_info) |
static bool | TestReportable (const TestInfo *test_info) |
static bool | ShouldRunTest (const TestInfo *test_info) |
Private Attributes | |
std::string | name_ |
const internal::scoped_ptr < const ::std::string > | type_param_ |
std::vector< TestInfo * > | test_info_list_ |
std::vector< int > | test_indices_ |
Test::SetUpTestCaseFunc | set_up_tc_ |
Test::TearDownTestCaseFunc | tear_down_tc_ |
bool | should_run_ |
TimeInMillis | elapsed_time_ |
TestResult | ad_hoc_test_result_ |
Friends | |
class | Test |
class | internal::UnitTestImpl |
Definition at line 778 of file gtest.h.
View newest version in sPHENIX GitHub at line 778 of file gtest.h
TestCase::TestCase | ( | const char * | name, |
const char * | a_type_param, | ||
Test::SetUpTestCaseFunc | set_up_tc, | ||
Test::TearDownTestCaseFunc | tear_down_tc | ||
) |
|
virtual |
Definition at line 2732 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2732 of file gtest.cc
References testing::internal::ForEach(), and test_info_list_.
|
inline |
Definition at line 849 of file gtest.h.
View newest version in sPHENIX GitHub at line 849 of file gtest.h
Referenced by testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase().
|
private |
Definition at line 2753 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2753 of file gtest.cc
References test_indices_, and test_info_list_.
|
private |
Definition at line 2787 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2787 of file gtest.cc
References ad_hoc_test_result_, testing::TestResult::Clear(), testing::TestInfo::ClearTestResult(), testing::internal::ForEach(), and test_info_list_.
Referenced by ClearTestCaseResult().
|
inlinestaticprivate |
Definition at line 878 of file gtest.h.
View newest version in sPHENIX GitHub at line 878 of file gtest.h
References ClearResult().
Referenced by testing::internal::UnitTestImpl::ClearNonAdHocTestResult().
int TestCase::disabled_test_count | ( | ) | const |
Definition at line 2692 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2692 of file gtest.cc
References testing::internal::CountIf(), test_info_list_, and TestDisabled().
Referenced by testing::internal::UnitTestImpl::disabled_test_count(), and testing::internal::TEST().
|
inline |
Definition at line 841 of file gtest.h.
View newest version in sPHENIX GitHub at line 841 of file gtest.h
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestCaseEnd(), and testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase().
|
inline |
Definition at line 838 of file gtest.h.
View newest version in sPHENIX GitHub at line 838 of file gtest.h
Referenced by testing::internal::TestCaseFailed().
int TestCase::failed_test_count | ( | ) | const |
Definition at line 2682 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2682 of file gtest.cc
References testing::internal::CountIf(), test_info_list_, and TestFailed().
Referenced by testing::internal::UnitTestImpl::failed_test_count(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), and testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase().
|
private |
Definition at line 2746 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2746 of file gtest.cc
References testing::internal::GetElementOr(), index, test_indices_, and test_info_list_.
Referenced by Run().
const TestInfo * TestCase::GetTestInfo | ( | int | i | ) | const |
Definition at line 2739 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2739 of file gtest.cc
References testing::internal::GetElementOr(), index, test_indices_, and test_info_list_.
Referenced by testing::internal::UnitTestHelper::GetSortedTests(), testing::TestInfoTest::GetTestInfo(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase(), and testing::internal::TEST().
|
private |
|
inline |
Definition at line 800 of file gtest.h.
View newest version in sPHENIX GitHub at line 800 of file gtest.h
References name_.
Referenced by testing::internal::UnitTestImpl::FilterTests(), testing::internal::UnitTestHelper::FindTestCase(), testing::internal::UnitTestImpl::ListTestsMatchingFilter(), testing::internal::PrettyUnitTestResultPrinter::OnTestCaseEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestCaseStart(), testing::internal::TestCaseNameIs::operator()(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase(), and testing::internal::TEST().
|
inline |
Definition at line 835 of file gtest.h.
View newest version in sPHENIX GitHub at line 835 of file gtest.h
Referenced by testing::internal::TestCasePassed().
int TestCase::reportable_disabled_test_count | ( | ) | const |
Definition at line 2687 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2687 of file gtest.cc
References testing::internal::CountIf(), test_info_list_, and TestReportableDisabled().
Referenced by testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase(), and testing::internal::UnitTestImpl::reportable_disabled_test_count().
int TestCase::reportable_test_count | ( | ) | const |
Definition at line 2697 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2697 of file gtest.cc
References testing::internal::CountIf(), test_info_list_, and TestReportable().
Referenced by testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase(), testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest(), and testing::internal::UnitTestImpl::reportable_test_count().
|
private |
Definition at line 2759 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2759 of file gtest.cc
References elapsed_time_, testing::UnitTest::GetInstance(), GetMutableTestInfo(), testing::internal::GetTimeInMillis(), testing::internal::GetUnitTestImpl(), testing::internal::HandleExceptionsInMethodIfSupported(), i, testing::UnitTest::listeners(), testing::TestEventListener::OnTestCaseEnd(), testing::TestEventListener::OnTestCaseStart(), testing::internal::UnitTestImpl::os_stack_trace_getter(), testing::TestEventListeners::repeater(), testing::TestInfo::Run(), RunSetUpTestCase(), RunTearDownTestCase(), testing::internal::UnitTestImpl::set_current_test_case(), should_run_, start, total_test_count(), and testing::internal::OsStackTraceGetterInterface::UponLeavingGTest().
Referenced by testing::internal::UnitTestImpl::RunAllTests().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Definition at line 868 of file gtest.h.
View newest version in sPHENIX GitHub at line 868 of file gtest.h
Referenced by testing::internal::UnitTestImpl::FilterTests().
|
inline |
Definition at line 811 of file gtest.h.
View newest version in sPHENIX GitHub at line 811 of file gtest.h
Referenced by testing::internal::UnitTestImpl::FilterTests(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), testing::internal::ShouldRunTestCase(), testing::internal::TEST(), testing::internal::TestCaseFailed(), and testing::internal::TestCasePassed().
|
inlinestaticprivate |
Definition at line 920 of file gtest.h.
View newest version in sPHENIX GitHub at line 920 of file gtest.h
References testing::TestInfo::should_run().
Referenced by test_to_run_count().
|
private |
Definition at line 2793 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2793 of file gtest.cc
References testing::internal::Shuffle(), and test_indices_.
int TestCase::successful_test_count | ( | ) | const |
Definition at line 2677 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2677 of file gtest.cc
References testing::internal::CountIf(), test_info_list_, and TestPassed().
Referenced by testing::internal::UnitTestImpl::successful_test_count().
|
inlineprivate |
Definition at line 856 of file gtest.h.
View newest version in sPHENIX GitHub at line 856 of file gtest.h
Referenced by testing::internal::UnitTestImpl::FilterTests(), testing::Test::HasSameFixtureClass(), and testing::internal::UnitTestImpl::ListTestsMatchingFilter().
|
inlineprivate |
int TestCase::test_to_run_count | ( | ) | const |
Definition at line 2702 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2702 of file gtest.cc
References testing::internal::CountIf(), ShouldRunTest(), and test_info_list_.
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestCaseEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestCaseStart(), testing::internal::TEST(), and testing::internal::UnitTestImpl::test_to_run_count().
|
inlinestaticprivate |
Definition at line 910 of file gtest.h.
View newest version in sPHENIX GitHub at line 910 of file gtest.h
References testing::TestInfo::is_disabled_.
Referenced by disabled_test_count().
|
inlinestaticprivate |
Definition at line 899 of file gtest.h.
View newest version in sPHENIX GitHub at line 899 of file gtest.h
References testing::TestResult::Failed(), testing::TestInfo::result(), and testing::TestInfo::should_run().
Referenced by failed_test_count().
|
inlinestaticprivate |
Definition at line 894 of file gtest.h.
View newest version in sPHENIX GitHub at line 894 of file gtest.h
References testing::TestResult::Passed(), testing::TestInfo::result(), and testing::TestInfo::should_run().
Referenced by successful_test_count().
|
inlinestaticprivate |
Definition at line 915 of file gtest.h.
View newest version in sPHENIX GitHub at line 915 of file gtest.h
References testing::TestInfo::is_reportable().
Referenced by reportable_test_count().
|
inlinestaticprivate |
Definition at line 905 of file gtest.h.
View newest version in sPHENIX GitHub at line 905 of file gtest.h
References testing::TestInfo::is_disabled_, and testing::TestInfo::is_reportable().
Referenced by reportable_disabled_test_count().
int TestCase::total_test_count | ( | ) | const |
Definition at line 2707 of file gtest.cc.
View newest version in sPHENIX GitHub at line 2707 of file gtest.cc
References test_info_list_.
Referenced by testing::internal::UnitTestHelper::GetSortedTests(), testing::TestInfoTest::GetTestInfo(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase(), Run(), testing::internal::TEST(), and testing::internal::UnitTestImpl::total_test_count().
|
inline |
Definition at line 804 of file gtest.h.
View newest version in sPHENIX GitHub at line 804 of file gtest.h
Referenced by testing::internal::UnitTestImpl::ListTestsMatchingFilter(), testing::internal::PrettyUnitTestResultPrinter::OnTestCaseStart(), and testing::internal::TEST().
|
private |
|
friend |
|
friend |
|
private |
Definition at line 952 of file gtest.h.
View newest version in sPHENIX GitHub at line 952 of file gtest.h
Referenced by ClearResult(), and testing::internal::UnitTestImpl::RecordProperty().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 941 of file gtest.h.
View newest version in sPHENIX GitHub at line 941 of file gtest.h
Referenced by AddTestInfo(), GetMutableTestInfo(), GetTestInfo(), ShuffleTests(), and UnshuffleTests().
|
private |
Definition at line 937 of file gtest.h.
View newest version in sPHENIX GitHub at line 937 of file gtest.h
Referenced by AddTestInfo(), ClearResult(), disabled_test_count(), failed_test_count(), GetMutableTestInfo(), GetTestInfo(), reportable_disabled_test_count(), reportable_test_count(), successful_test_count(), test_to_run_count(), total_test_count(), and ~TestCase().
|
private |