Lines Matching refs:obj

85         obj = check_init_priorities.ZephyrInitLevels("")
86 obj._elf = mock_elf
87 obj._load_objects()
89 self.assertDictEqual(obj._objects, {0xaa: ("a", 4, 1), 0xbb: ("b", 8, 2)})
129 obj = check_init_priorities.ZephyrInitLevels("")
130 obj._elf = mock_elf
131 obj._load_level_addr()
133 self.assertDictEqual(obj._init_level_addr, {
141 self.assertEqual(obj._init_level_end, 0x66)
145 obj = check_init_priorities.ZephyrInitLevels("")
147 self.assertEqual(obj._device_ord_from_name(None), None)
148 self.assertEqual(obj._device_ord_from_name("hey, hi!"), None)
149 self.assertEqual(obj._device_ord_from_name("__device_dts_ord_123"), 123)
153 obj = check_init_priorities.ZephyrInitLevels("")
154 obj._objects = {0x123: ("name", 4)}
156 self.assertEqual(obj._object_name(0), "NULL")
157 self.assertEqual(obj._object_name(73), "unknown")
158 self.assertEqual(obj._object_name(0x123), "name")
162 obj = check_init_priorities.ZephyrInitLevels("")
163 obj._elf = mock.Mock()
164 obj._elf.elfclass = 32
166 obj._elf.get_section.return_value = mock_section
172 self.assertEqual(obj._initlevel_pointer(0x100, 0, 0), 1)
173 self.assertEqual(obj._initlevel_pointer(0x100, 1, 0), 2)
174 self.assertEqual(obj._initlevel_pointer(0x104, 0, 0), 2)
175 self.assertEqual(obj._initlevel_pointer(0x104, 1, 0), 3)
179 obj = check_init_priorities.ZephyrInitLevels("")
180 obj._elf = mock.Mock()
181 obj._elf.elfclass = 64
183 obj._elf.get_section.return_value = mock_section
189 self.assertEqual(obj._initlevel_pointer(0x100, 0, 0), 1)
190 self.assertEqual(obj._initlevel_pointer(0x100, 1, 0), 2)
191 self.assertEqual(obj._initlevel_pointer(0x108, 0, 0), 2)
192 self.assertEqual(obj._initlevel_pointer(0x108, 1, 0), 3)
198 obj = check_init_priorities.ZephyrInitLevels("")
199 obj._init_level_addr = {
207 obj._init_level_end = 0x0c
208 obj._objects = {
228 obj._process_initlevels()
230 self.assertDictEqual(obj.initlevels, {
238 self.assertDictEqual(obj.devices, {