tools/binary_size/libsupersize/dwarfdump_test.py
def testParseContiguousAddressRange(self):
    """Test parsing DW_TAG_compile_unit with contiguous address range."""
    lines = [
        'DW_TAG_compile_unit',
        'DW_AT_name ("solution.cc")',
        'DW_AT_low_pc (0x1)',
        'DW_AT_high_pc (0x10)',
    ]
    expected_info_list = [
        (0x1, 0x10, 'solution.cc'),
    ]
    self.assertEqual(self._MakeRangeInfoList(expected_info_list),
                     dwarfdump.ParseDumpOutputForTest(lines))
Test parsing DW_TAG_compile_unit with contiguous address range.
Test parsing DW_TAG_compile_unit with contiguous address range.
Test parsing DW_TAG_compile_unit with contiguous address range .
def testParseContiguousAddressRange(self):
    lines = [
        'DW_TAG_compile_unit',
        'DW_AT_name ("solution.cc")',
        'DW_AT_low_pc (0x1)',
        'DW_AT_high_pc (0x10)',
    ]
    expected_info_list = [
        (0x1, 0x10, 'solution.cc'),
    ]
    self.assertEqual(self._MakeRangeInfoList(expected_info_list),
                     dwarfdump.ParseDumpOutputForTest(lines))
def testParseContiguousAddressRange ( self ) : lines = [ 'DW_TAG_compile_unit' , 'DW_AT_name ("solution.cc")' , 'DW_AT_low_pc (0x1)' , 'DW_AT_high_pc (0x10)' , ] expected_info_list = [ ( 0x1 , 0x10 , 'solution.cc' ) , ] self . assertEqual ( self . _MakeRangeInfoList ( expected_info_list ) , dwarfdump . ParseDumpOutputForTest ( lines ) )
Test parsing DW_TAG_compile_unit with contiguous address range.
Test parsing DW_TAG_compile_unit with contiguous address range .
"""Test parsing DW_TAG_compile_unit with contiguous address range."""
self