3 Test lldb data formatter subsystem.
8 from lldbsuite.test.decorators import *
9 from lldbsuite.test.lldbtest import *
10 from lldbsuite.test import lldbutil
12 from ObjCDataFormatterTestCase import ObjCDataFormatterTestCase
15 class ObjCDataFormatterNSData(ObjCDataFormatterTestCase):
18 def test_nsdata_with_run_command(self):
19 """Test formatters for NSData."""
20 self.appkit_tester_impl(self.nsdata_data_formatter_commands)
22 def nsdata_data_formatter_commands(self):
24 'frame variable immutableData mutableData data_ref mutable_data_ref mutable_string_ref concreteData concreteMutableData',
26 '(NSData *) immutableData = ', ' 4 bytes',
27 '(NSData *) mutableData = ', ' 14 bytes',
28 '(CFDataRef) data_ref = ', '@"5 bytes"',
29 '(CFMutableDataRef) mutable_data_ref = ', '@"5 bytes"',
30 '(CFMutableStringRef) mutable_string_ref = ',
31 ' @"Wish ya knew"', '(NSData *) concreteData = ',
32 ' 100000 bytes', '(NSMutableData *) concreteMutableData = ',