tools/binary_size/libsupersize/dwarfdump_test.py
def testParseNonContiguousAddressRangeOtherBrackets(self):
    """Test parsing DW_AT_ranges when non-standard brackets are used."""
    lines = [
        'DW_TAG_compile_unit',
        'DW_AT_name ("solution.cc")',
        'DW_AT_low_pc (0x0)',
        'DW_AT_ranges [0x1',
        '(0x10, 0x21)',
        '[0x31, 0x41]]',
    ]
    expected_info_list = [(0x10, 0x21, 'solution.cc'),
                          (0x31, 0x41, 'solution.cc')]
    self.assertEqual(self._MakeRangeInfoList(expected_info_list),
                     dwarfdump.ParseDumpOutputForTest(lines))
Test parsing DW_AT_ranges when non-standard brackets are used.
Test parsing DW_AT_ranges when non-standard brackets are used.
Test parsing DW_AT_ranges when non - standard brackets are used .
def testParseNonContiguousAddressRangeOtherBrackets(self):
    lines = [
        'DW_TAG_compile_unit',
        'DW_AT_name ("solution.cc")',
        'DW_AT_low_pc (0x0)',
        'DW_AT_ranges [0x1',
        '(0x10, 0x21)',
        '[0x31, 0x41]]',
    ]
    expected_info_list = [(0x10, 0x21, 'solution.cc'),
                          (0x31, 0x41, 'solution.cc')]
    self.assertEqual(self._MakeRangeInfoList(expected_info_list),
                     dwarfdump.ParseDumpOutputForTest(lines))
def testParseNonContiguousAddressRangeOtherBrackets ( self ) : lines = [ 'DW_TAG_compile_unit' , 'DW_AT_name ("solution.cc")' , 'DW_AT_low_pc (0x0)' , 'DW_AT_ranges [0x1' , '(0x10, 0x21)' , '[0x31, 0x41]]' , ] expected_info_list = [ ( 0x10 , 0x21 , 'solution.cc' ) , ( 0x31 , 0x41 , 'solution.cc' ) ] self . assertEqual ( self . _MakeRangeInfoList ( expected_info_list ) , dwarfdump . ParseDumpOutputForTest ( lines ) )
Test parsing DW_AT_ranges when non-standard brackets are used.
Test parsing DW_AT_ranges when non - standard brackets are used .
"""Test parsing DW_AT_ranges when non-standard brackets are used."""
self