Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gtest-death-test_test.cc File Reference
+ Include dependency graph for gtest-death-test_test.cc:

Go to the source code of this file.

Functions

 TEST (ConditionalDeathMacrosTest, WarnsWhenDeathTestsNotAvailable)
 
void FuncWithAssert (int *n)
 
 TEST (ConditionalDeathMacrosTest, AssertDeatDoesNotReturnhIfUnsupported)
 
 TEST (ConditionalDeathMacrosSyntaxDeathTest, SingleStatement)
 
 TEST (ConditionalDeathMacrosSyntaxDeathTest, SwitchStatement)
 
 TEST (NotADeathTest, Test)
 

Function Documentation

void FuncWithAssert ( int *  n)

Definition at line 1363 of file gtest-death-test_test.cc.

View newest version in sPHENIX GitHub at line 1363 of file gtest-death-test_test.cc

References ASSERT_DEATH_IF_SUPPORTED.

Referenced by TEST().

+ Here is the caller graph for this function:

TEST ( ConditionalDeathMacrosTest  ,
WarnsWhenDeathTestsNotAvailable   
)

Definition at line 1334 of file gtest-death-test_test.cc.

View newest version in sPHENIX GitHub at line 1334 of file gtest-death-test_test.cc

References ASSERT_DEATH_IF_SUPPORTED, ASSERT_TRUE, testing::internal::CaptureStderr(), EXPECT_DEATH_IF_SUPPORTED, testing::internal::GetCapturedStderr(), and check_smearing_config::output.

+ Here is the call graph for this function:

TEST ( ConditionalDeathMacrosTest  ,
AssertDeatDoesNotReturnhIfUnsupported   
)

Definition at line 1370 of file gtest-death-test_test.cc.

View newest version in sPHENIX GitHub at line 1370 of file gtest-death-test_test.cc

References EXPECT_EQ, FuncWithAssert(), and n.

+ Here is the call graph for this function:

TEST ( ConditionalDeathMacrosSyntaxDeathTest  ,
SingleStatement   
)

Definition at line 1383 of file gtest-death-test_test.cc.

View newest version in sPHENIX GitHub at line 1383 of file gtest-death-test_test.cc

References testing::internal::AlwaysFalse(), testing::internal::AlwaysTrue(), ASSERT_DEATH_IF_SUPPORTED, and EXPECT_DEATH_IF_SUPPORTED.

+ Here is the call graph for this function:

TEST ( ConditionalDeathMacrosSyntaxDeathTest  ,
SwitchStatement   
)
TEST ( NotADeathTest  ,
Test   
)

Definition at line 1425 of file gtest-death-test_test.cc.

View newest version in sPHENIX GitHub at line 1425 of file gtest-death-test_test.cc

References SUCCEED.