(self)
| 124 | self.assertEqual(expected, Wrapper.StructTest.__to_uint(data)) |
| 125 | |
| 126 | def test_ref_save_internal(self): |
| 127 | expected = 0x16363676 |
| 128 | |
| 129 | with DummyStruct.ref(self.mem, self.ptr) as dummy: |
| 130 | dummy.C.X = expected |
| 131 | |
| 132 | data = self.__read_data(DummyStruct.offsetof('C') + DummyInternalStruct.offsetof('X'), 4) |
| 133 | self.assertEqual(expected, Wrapper.StructTest.__to_uint(data)) |
| 134 | |
| 135 | def test_volatile_ref(self): |
| 136 | dummy = DummyStruct.volatile_ref(self.mem, self.ptr) |
nothing calls this directly
no test coverage detected