- 3.0.1 core module.
|
Public Member Functions | |
def | RunAndVerify (self, env_var_value, flag_value, should_fail) |
def | testDefaultBehavior (self) |
def | testThrowOnFailureEnvVar (self) |
def | testThrowOnFailureFlag (self) |
def | testThrowOnFailureFlagOverridesEnvVar (self) |
Tests the throw-on-failure mode.
def googletest-throw-on-failure-test.ThrowOnFailureTest.RunAndVerify | ( | self, | |
env_var_value, | |||
flag_value, | |||
should_fail | |||
) |
Runs googletest-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.
References googletest-throw-on-failure-test.Run(), and googletest-throw-on-failure-test.SetEnvVar().
Referenced by googletest-throw-on-failure-test.ThrowOnFailureTest.testDefaultBehavior(), googletest-throw-on-failure-test.ThrowOnFailureTest.testThrowOnFailureEnvVar(), googletest-throw-on-failure-test.ThrowOnFailureTest.testThrowOnFailureFlag(), and googletest-throw-on-failure-test.ThrowOnFailureTest.testThrowOnFailureFlagOverridesEnvVar().
def googletest-throw-on-failure-test.ThrowOnFailureTest.testDefaultBehavior | ( | self | ) |
Tests the behavior of the default mode.
References googletest-throw-on-failure-test.ThrowOnFailureTest.RunAndVerify(), googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.RunAndVerify(), googletest-list-tests-unittest.GTestListTestsUnitTest.RunAndVerify(), and googletest-filter-unittest.GTestFilterUnitTest.RunAndVerify().
def googletest-throw-on-failure-test.ThrowOnFailureTest.testThrowOnFailureEnvVar | ( | self | ) |
Tests using the GTEST_THROW_ON_FAILURE environment variable.
References googletest-throw-on-failure-test.ThrowOnFailureTest.RunAndVerify(), googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.RunAndVerify(), googletest-list-tests-unittest.GTestListTestsUnitTest.RunAndVerify(), and googletest-filter-unittest.GTestFilterUnitTest.RunAndVerify().
def googletest-throw-on-failure-test.ThrowOnFailureTest.testThrowOnFailureFlag | ( | self | ) |
Tests using the --gtest_throw_on_failure flag.
References googletest-throw-on-failure-test.ThrowOnFailureTest.RunAndVerify(), googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.RunAndVerify(), googletest-list-tests-unittest.GTestListTestsUnitTest.RunAndVerify(), and googletest-filter-unittest.GTestFilterUnitTest.RunAndVerify().
def googletest-throw-on-failure-test.ThrowOnFailureTest.testThrowOnFailureFlagOverridesEnvVar | ( | self | ) |
Tests that --gtest_throw_on_failure overrides GTEST_THROW_ON_FAILURE.
References gtest_test_utils.Main(), googletest-throw-on-failure-test.ThrowOnFailureTest.RunAndVerify(), googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.RunAndVerify(), googletest-list-tests-unittest.GTestListTestsUnitTest.RunAndVerify(), and googletest-filter-unittest.GTestFilterUnitTest.RunAndVerify().