2 Test some SBModuleSpec APIs.
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)
23 self
.assertEqual(module_spec
.GetObjectOffset(), 0)
24 self
.assertEqual(module_spec
.GetObjectSize(), 0)