tesseract v5.3.3.20231005
googletest-catch-exceptions-test.CatchSehExceptionsTest Class Reference
Inheritance diagram for googletest-catch-exceptions-test.CatchSehExceptionsTest:

Public Member Functions

def TestSehExceptions (self, test_output)
 
def testCatchesSehExceptionsWithCxxExceptionsEnabled (self)
 
def testCatchesSehExceptionsWithCxxExceptionsDisabled (self)
 

Detailed Description

Tests exception-catching behavior.

Definition at line 81 of file googletest-catch-exceptions-test.py.

Member Function Documentation

◆ testCatchesSehExceptionsWithCxxExceptionsDisabled()

def googletest-catch-exceptions-test.CatchSehExceptionsTest.testCatchesSehExceptionsWithCxxExceptionsDisabled (   self)

Definition at line 106 of file googletest-catch-exceptions-test.py.

106 def testCatchesSehExceptionsWithCxxExceptionsDisabled(self):
107 self.TestSehExceptions(BINARY_OUTPUT)
108
109

◆ testCatchesSehExceptionsWithCxxExceptionsEnabled()

def googletest-catch-exceptions-test.CatchSehExceptionsTest.testCatchesSehExceptionsWithCxxExceptionsEnabled (   self)

Definition at line 103 of file googletest-catch-exceptions-test.py.

103 def testCatchesSehExceptionsWithCxxExceptionsEnabled(self):
104 self.TestSehExceptions(EX_BINARY_OUTPUT)
105

◆ TestSehExceptions()

def googletest-catch-exceptions-test.CatchSehExceptionsTest.TestSehExceptions (   self,
  test_output 
)

Definition at line 85 of file googletest-catch-exceptions-test.py.

85 def TestSehExceptions(self, test_output):
86 self.assert_('SEH exception with code 0x2a thrown '
87 'in the test fixture\'s constructor'
88 in test_output)
89 self.assert_('SEH exception with code 0x2a thrown '
90 'in the test fixture\'s destructor'
91 in test_output)
92 self.assert_('SEH exception with code 0x2a thrown in SetUpTestSuite()'
93 in test_output)
94 self.assert_('SEH exception with code 0x2a thrown in TearDownTestSuite()'
95 in test_output)
96 self.assert_('SEH exception with code 0x2a thrown in SetUp()'
97 in test_output)
98 self.assert_('SEH exception with code 0x2a thrown in TearDown()'
99 in test_output)
100 self.assert_('SEH exception with code 0x2a thrown in the test body'
101 in test_output)
102

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