MCPcopy Create free account
hub / github.com/qilingframework/qiling / restore

Method restore

tests/test_pe.py:556–564  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

554 self.testcase = testcase
555
556 def restore(self, path):
557 entry = super().restore(path)
558 self.testcase.assertTrue(entry is not None) # Check that it loaded a cache entry
559 if path.endswith('msvcrt.dll'):
560 self.testcase.assertEqual(len(entry.cmdlines), 2)
561 else:
562 self.testcase.assertEqual(len(entry.cmdlines), 0)
563 self.testcase.assertIsInstance(entry.data, bytearray)
564 return entry
565
566 def save(self, path, entry):
567 self.testcase.assertFalse(True) # This should not be called!

Callers 4

my_putsMethod · 0.45
restoreMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected