MCPcopy Index your code
hub / github.com/qilingframework/qiling / test_load_from

Method test_load_from

tests/test_struct.py:77–83  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 return int.from_bytes(data, 'little', signed=False)
76
77 def test_load_from(self):
78 dummy = DummyStruct.load_from(self.mem, self.ptr)
79
80 self.assertEqual(self.expected['A'], dummy.A)
81 self.assertEqual(self.expected['B'], dummy.B)
82 self.assertEqual(self.expected['C'], dummy.C)
83 self.assertEqual(self.expected['D'], dummy.D)
84
85 def test_save_to(self):
86 dummy = DummyStruct(

Callers

nothing calls this directly

Calls 1

load_fromMethod · 0.80

Tested by

no test coverage detected