[AMDGPU] Add True16 register classes.
[llvm-project.git] / lldb / test / API / python_api / module_spec / TestModuleSpec.py
blobeee7acb9993b1fd470f18797c1c27a11981810f3
1 """
2 Test some SBModuleSpec APIs.
3 """
5 import lldb
6 from lldbsuite.test.decorators import *
7 from lldbsuite.test.lldbtest import *
10 class ModuleSpecAPIsTestCase(TestBase):
11 def test_object_offset_and_size(self):
12 module_spec = lldb.SBModuleSpec()
13 self.assertEqual(module_spec.GetObjectOffset(), 0)
14 self.assertEqual(module_spec.GetObjectSize(), 0)
16 module_spec.SetObjectOffset(4096)
17 self.assertEqual(module_spec.GetObjectOffset(), 4096)
19 module_spec.SetObjectSize(3600)
20 self.assertEqual(module_spec.GetObjectSize(), 3600)
22 module_spec.Clear()
23 self.assertEqual(module_spec.GetObjectOffset(), 0)
24 self.assertEqual(module_spec.GetObjectSize(), 0)