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

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

+ Inheritance diagram for testing::Test:
+ Collaboration diagram for testing::Test:

Classes

struct  Setup_should_be_spelled_SetUp
 

Public Types

typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef
internal::TearDownTestCaseFunc 
TearDownTestCaseFunc
 

Public Member Functions

virtual ~Test ()
 

Static Public Member Functions

static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Protected Member Functions

 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Private Member Functions

virtual void TestBody ()=0
 
void Run ()
 
void DeleteSelf_ ()
 
virtual
Setup_should_be_spelled_SetUp
Setup ()
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (Test)
 

Static Private Member Functions

static bool HasSameFixtureClass ()
 

Private Attributes

const internal::scoped_ptr
< GTEST_FLAG_SAVER_
gtest_flag_saver_
 

Friends

class TestInfo
 

Detailed Description

Definition at line 371 of file gtest.h.

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

Member Typedef Documentation

typedef internal::SetUpTestCaseFunc testing::Test::SetUpTestCaseFunc

Definition at line 377 of file gtest.h.

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

typedef internal::TearDownTestCaseFunc testing::Test::TearDownTestCaseFunc

Definition at line 378 of file gtest.h.

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

Constructor & Destructor Documentation

Test::~Test ( )
virtual

Definition at line 2221 of file gtest.cc.

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

Test::Test ( )
protected

Definition at line 2214 of file gtest.cc.

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

Member Function Documentation

void testing::Test::DeleteSelf_ ( )
inlineprivate

Definition at line 453 of file gtest.h.

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

Referenced by testing::TestInfo::Run().

+ Here is the caller graph for this function:

testing::Test::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( Test  )
private
static bool testing::Test::HasFailure ( )
inlinestatic

Definition at line 407 of file gtest.h.

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

Referenced by HasFailureHelper().

+ Here is the caller graph for this function:

bool Test::HasFatalFailure ( )
static

Definition at line 2487 of file gtest.cc.

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

References testing::internal::UnitTestImpl::current_test_result(), testing::internal::GetUnitTestImpl(), and testing::TestResult::HasFatalFailure().

Referenced by testing::TestInfo::Run(), testing::internal::UnitTestImpl::RunAllTests(), and TryTestSubroutine().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Test::HasNonfatalFailure ( )
static

Definition at line 2492 of file gtest.cc.

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

References testing::internal::UnitTestImpl::current_test_result(), and testing::internal::GetUnitTestImpl().

Referenced by HasNonfatalFailureHelper().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Test::HasSameFixtureClass ( )
staticprivate

Definition at line 2269 of file gtest.cc.

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

References ADD_FAILURE, testing::internal::UnitTestImpl::current_test_case(), testing::internal::UnitTestImpl::current_test_info(), testing::TestInfo::fixture_class_id_, testing::internal::GetTestTypeId(), testing::internal::GetUnitTestImpl(), testing::TestInfo::name(), testing::TestInfo::test_case_name(), and testing::TestCase::test_info_list().

+ Here is the call graph for this function:

void Test::RecordProperty ( const std::string &  key,
const std::string &  value 
)
static

Definition at line 2237 of file gtest.cc.

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

References testing::UnitTest::GetInstance(), and testing::UnitTest::RecordProperty().

Referenced by ExternalUtilityThatCallsRecordProperty(), main(), RecordProperty(), PropertyOne::SetUp(), PropertyTwo::SetUp(), PropertyOne::TearDown(), and PropertyTwo::TearDown().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Test::RecordProperty ( const std::string &  key,
int  value 
)
static

Definition at line 2242 of file gtest.cc.

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

References testing::Message::GetString(), RecordProperty(), and value.

+ Here is the call graph for this function:

void Test::Run ( )
private

Definition at line 2465 of file gtest.cc.

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

References testing::internal::GetUnitTestImpl(), testing::internal::HandleExceptionsInMethodIfSupported(), testing::internal::UnitTestImpl::os_stack_trace_getter(), and testing::internal::OsStackTraceGetterInterface::UponLeavingGTest().

Referenced by testing::TestInfo::Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual Setup_should_be_spelled_SetUp* testing::Test::Setup ( )
inlineprivatevirtual

Definition at line 474 of file gtest.h.

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

static void testing::Test::SetUpTestCase ( )
inlinestatic

Definition at line 389 of file gtest.h.

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

static void testing::Test::TearDownTestCase ( )
inlinestatic

Definition at line 397 of file gtest.h.

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

virtual void testing::Test::TestBody ( )
privatepure virtual

Friends And Related Function Documentation

friend class TestInfo
friend

Definition at line 373 of file gtest.h.

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

Member Data Documentation

const internal::scoped_ptr< GTEST_FLAG_SAVER_ > testing::Test::gtest_flag_saver_
private

Definition at line 455 of file gtest.h.

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


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