mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[0.3.x] added: failed tests (function prototype)
git-svn-id: https://pykd.svn.codeplex.com/svn@84454 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
0eeb81b022
commit
0f1c514e8c
@ -259,3 +259,10 @@ class TypeInfoTest( unittest.TestCase ):
|
|||||||
functype = target.module.typedVar( "CdeclStaticMethodPtr" ).type().deref()
|
functype = target.module.typedVar( "CdeclStaticMethodPtr" ).type().deref()
|
||||||
self.assertEqual( [ arg.name() for arg in functype ], [] )
|
self.assertEqual( [ arg.name() for arg in functype ], [] )
|
||||||
|
|
||||||
|
def testFunctionName(self):
|
||||||
|
functype = target.module.typedVar( "CdeclFuncPtr" ).type().deref()
|
||||||
|
self.assertEqual(functype.name(), "Void(__cdecl)(Int4B, Float)")
|
||||||
|
|
||||||
|
def testFunctionPtrName(self):
|
||||||
|
funcptrtype = target.module.typedVar( "CdeclFuncPtr" ).type()
|
||||||
|
self.assertEqual(funcptrtype.name(), "Void(__cdecl*)(Int4B, Float)")
|
||||||
|
Loading…
Reference in New Issue
Block a user