tesseract v5.3.3.20231005
googletest-param-test-invalid-name2-test Namespace Reference

Classes

class  GTestParamTestInvalidName2Test
 

Functions

def Assert (condition)
 
def TestExitCodeAndOutput (command)
 

Variables

string binary_name = 'googletest-param-test-invalid-name2-test_'
 
 COMMAND = gtest_test_utils.GetTestExecutablePath(binary_name)
 

Function Documentation

◆ Assert()

def googletest-param-test-invalid-name2-test.Assert (   condition)

Definition at line 39 of file googletest-param-test-invalid-name2-test.py.

39def Assert(condition):
40 if not condition:
41 raise AssertionError
42
43

◆ TestExitCodeAndOutput()

def googletest-param-test-invalid-name2-test.TestExitCodeAndOutput (   command)
Runs the given command and verifies its exit code and output.

Definition at line 44 of file googletest-param-test-invalid-name2-test.py.

44def TestExitCodeAndOutput(command):
45 """Runs the given command and verifies its exit code and output."""
46
47 err = ('Duplicate parameterized test name \'a\'')
48
50 Assert(p.terminated_by_signal)
51
52 # Check for appropriate output
53 Assert(err in p.output)
54
55

Variable Documentation

◆ binary_name

string googletest-param-test-invalid-name2-test.binary_name = 'googletest-param-test-invalid-name2-test_'

Definition at line 35 of file googletest-param-test-invalid-name2-test.py.

◆ COMMAND

googletest-param-test-invalid-name2-test.COMMAND = gtest_test_utils.GetTestExecutablePath(binary_name)

Definition at line 36 of file googletest-param-test-invalid-name2-test.py.