Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gtest_throw_on_failure_test.ThrowOnFailureTest Class Reference
+ Inheritance diagram for gtest_throw_on_failure_test.ThrowOnFailureTest:
+ Collaboration diagram for gtest_throw_on_failure_test.ThrowOnFailureTest:

Public Member Functions

def RunAndVerify
 
def testDefaultBehavior
 
def testThrowOnFailureEnvVar
 
def testThrowOnFailureFlag
 
def testThrowOnFailureFlagOverridesEnvVar
 

Detailed Description

Tests the throw-on-failure mode.

Definition at line 80 of file gtest_throw_on_failure_test.py.

View newest version in sPHENIX GitHub at line 80 of file gtest_throw_on_failure_test.py

Member Function Documentation

def gtest_throw_on_failure_test.ThrowOnFailureTest.RunAndVerify (   self,
  env_var_value,
  flag_value,
  should_fail 
)
Runs gtest_throw_on_failure_test_ and verifies that it does
(or does not) exit with a non-zero code.

Args:
  env_var_value:    value of the GTEST_BREAK_ON_FAILURE environment
                variable; None if the variable should be unset.
  flag_value:       value of the --gtest_break_on_failure flag;
                None if the flag should not be present.
  should_fail:      True iff the program is expected to fail.

Definition at line 83 of file gtest_throw_on_failure_test.py.

View newest version in sPHENIX GitHub at line 83 of file gtest_throw_on_failure_test.py

References join(), gtest_throw_on_failure_test.Run(), and gtest_throw_on_failure_test.SetEnvVar().

Referenced by gtest_throw_on_failure_test.ThrowOnFailureTest.testDefaultBehavior(), gtest_throw_on_failure_test.ThrowOnFailureTest.testThrowOnFailureEnvVar(), gtest_throw_on_failure_test.ThrowOnFailureTest.testThrowOnFailureFlag(), and gtest_throw_on_failure_test.ThrowOnFailureTest.testThrowOnFailureFlagOverridesEnvVar().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def gtest_throw_on_failure_test.ThrowOnFailureTest.testDefaultBehavior (   self)
Tests the behavior of the default mode.

Definition at line 128 of file gtest_throw_on_failure_test.py.

View newest version in sPHENIX GitHub at line 128 of file gtest_throw_on_failure_test.py

References gtest_throw_on_failure_test.ThrowOnFailureTest.RunAndVerify(), gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.RunAndVerify(), gtest_list_tests_unittest.GTestListTestsUnitTest.RunAndVerify(), and gtest_filter_unittest.GTestFilterUnitTest.RunAndVerify().

+ Here is the call graph for this function:

def gtest_throw_on_failure_test.ThrowOnFailureTest.testThrowOnFailureEnvVar (   self)
Tests using the GTEST_THROW_ON_FAILURE environment variable.

Definition at line 133 of file gtest_throw_on_failure_test.py.

View newest version in sPHENIX GitHub at line 133 of file gtest_throw_on_failure_test.py

References gtest_throw_on_failure_test.ThrowOnFailureTest.RunAndVerify(), gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.RunAndVerify(), gtest_list_tests_unittest.GTestListTestsUnitTest.RunAndVerify(), and gtest_filter_unittest.GTestFilterUnitTest.RunAndVerify().

+ Here is the call graph for this function:

def gtest_throw_on_failure_test.ThrowOnFailureTest.testThrowOnFailureFlag (   self)
Tests using the --gtest_throw_on_failure flag.

Definition at line 143 of file gtest_throw_on_failure_test.py.

View newest version in sPHENIX GitHub at line 143 of file gtest_throw_on_failure_test.py

References gtest_throw_on_failure_test.ThrowOnFailureTest.RunAndVerify(), gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.RunAndVerify(), gtest_list_tests_unittest.GTestListTestsUnitTest.RunAndVerify(), and gtest_filter_unittest.GTestFilterUnitTest.RunAndVerify().

+ Here is the call graph for this function:

def gtest_throw_on_failure_test.ThrowOnFailureTest.testThrowOnFailureFlagOverridesEnvVar (   self)
Tests that --gtest_throw_on_failure overrides GTEST_THROW_ON_FAILURE.

Definition at line 153 of file gtest_throw_on_failure_test.py.

View newest version in sPHENIX GitHub at line 153 of file gtest_throw_on_failure_test.py

References gtest_test_utils.Main(), gtest_throw_on_failure_test.ThrowOnFailureTest.RunAndVerify(), gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.RunAndVerify(), gtest_list_tests_unittest.GTestListTestsUnitTest.RunAndVerify(), and gtest_filter_unittest.GTestFilterUnitTest.RunAndVerify().

+ Here is the call graph for this function:


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