コード例 #1
0
ファイル: platform.py プロジェクト: Staphylo/voidwalker
 def test_test(self):
     cpu_repository = CpuRepository(TestCpuFactory())
     cpu = cpu_repository.get_cpu(TestCpu.architecture())
     for register_list in TestCpu.register_dict.values():
         for name in register_list:
             self.assertIsNotNone(cpu.register(name))
             register = cpu.register(name)
             self.assertEqual(name, register.name())
コード例 #2
0
 def test_test(self):
     cpu_repository = CpuRepository(TestCpuFactory())
     cpu = cpu_repository.get_cpu(TestCpu.architecture())
     for register_list in TestCpu.register_dict.itervalues():
         for name in register_list:
             self.assertIsNotNone(cpu.register(name))
             register = cpu.register(name)
             self.assertEqual(name, register.name())
コード例 #3
0
ファイル: platform.py プロジェクト: Staphylo/voidwalker
 def setUp(self):
     cpu_factory = TestCpuFactory()
     cpu = cpu_factory.create_cpu(TestCpu.architecture())
     inferior_factory = TestInferiorFactory()
     inferior = inferior_factory.create_inferior(cpu, 0)
     self._inferior_repository = InferiorRepository()
     self._inferior_repository.add_inferior(inferior)
     thread_factory = TestThreadFactory()
     thread_factory.create_thread(inferior, 0)
     self._platform_factory = TestPlatformFactory()
コード例 #4
0
 def setUp(self):
     cpu_factory = TestCpuFactory()
     cpu = cpu_factory.create_cpu(TestCpu.architecture())
     inferior_factory = TestInferiorFactory()
     inferior = inferior_factory.create_inferior(cpu, 0)
     self._inferior_repository = InferiorRepository()
     self._inferior_repository.add_inferior(inferior)
     thread_factory = TestThreadFactory()
     thread_factory.create_thread(inferior, 0)
     self._platform_factory = TestPlatformFactory()