tesseract v5.3.3.20231005
cpp.gmock_class_test.TestCase Class Reference
Inheritance diagram for cpp.gmock_class_test.TestCase:
cpp.gmock_class_test.GenerateMethodsTest cpp.gmock_class_test.GenerateMocksTest

Public Member Functions

def assertEqualIgnoreLeadingWhitespace (self, expected_lines, lines)
 

Static Public Member Functions

def StripLeadingWhitespace (lines)
 

Detailed Description

Helper class that adds assert methods.

Definition at line 31 of file gmock_class_test.py.

Member Function Documentation

◆ assertEqualIgnoreLeadingWhitespace()

def cpp.gmock_class_test.TestCase.assertEqualIgnoreLeadingWhitespace (   self,
  expected_lines,
  lines 
)
Specialized assert that ignores the indent level.

Definition at line 39 of file gmock_class_test.py.

39 def assertEqualIgnoreLeadingWhitespace(self, expected_lines, lines):
40 """Specialized assert that ignores the indent level."""
41 self.assertEqual(expected_lines, self.StripLeadingWhitespace(lines))
42
43

◆ StripLeadingWhitespace()

def cpp.gmock_class_test.TestCase.StripLeadingWhitespace (   lines)
static
Strip leading whitespace in each line in 'lines'.

Definition at line 35 of file gmock_class_test.py.

35 def StripLeadingWhitespace(lines):
36 """Strip leading whitespace in each line in 'lines'."""
37 return '\n'.join([s.lstrip() for s in lines.split('\n')])
38

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