Public Member Functions | List of all members
googletest-throw-on-failure-test.ThrowOnFailureTest Class Reference
Inheritance diagram for googletest-throw-on-failure-test.ThrowOnFailureTest:
Inheritance graph
[legend]

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)
 

Detailed Description

Tests the throw-on-failure mode.

Definition at line 77 of file googletest-throw-on-failure-test.py.

Member Function Documentation

◆ RunAndVerify()

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.

Definition at line 80 of file googletest-throw-on-failure-test.py.

◆ testDefaultBehavior()

def googletest-throw-on-failure-test.ThrowOnFailureTest.testDefaultBehavior (   self)
Tests the behavior of the default mode.

Definition at line 125 of file googletest-throw-on-failure-test.py.

◆ testThrowOnFailureEnvVar()

def googletest-throw-on-failure-test.ThrowOnFailureTest.testThrowOnFailureEnvVar (   self)
Tests using the GTEST_THROW_ON_FAILURE environment variable.

Definition at line 130 of file googletest-throw-on-failure-test.py.

◆ testThrowOnFailureFlag()

def googletest-throw-on-failure-test.ThrowOnFailureTest.testThrowOnFailureFlag (   self)
Tests using the --gtest_throw_on_failure flag.

Definition at line 140 of file googletest-throw-on-failure-test.py.

◆ testThrowOnFailureFlagOverridesEnvVar()

def googletest-throw-on-failure-test.ThrowOnFailureTest.testThrowOnFailureFlagOverridesEnvVar (   self)
Tests that --gtest_throw_on_failure overrides GTEST_THROW_ON_FAILURE.

Definition at line 150 of file googletest-throw-on-failure-test.py.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:10