mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 21:03:23 +08:00
[0.1.x] test : added test for issue # 10521
git-svn-id: https://pykd.svn.codeplex.com/svn@74957 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
25d2e5ef59
commit
0834a142bf
@ -84,6 +84,11 @@ class TypeInfoTest( unittest.TestCase ):
|
|||||||
self.assertEqual( "structTest", ti1.m_childField3.name() )
|
self.assertEqual( "structTest", ti1.m_childField3.name() )
|
||||||
self.assertEqual( "structTest", target.module.type("g_structTest").name() )
|
self.assertEqual( "structTest", target.module.type("g_structTest").name() )
|
||||||
|
|
||||||
|
def testVarName( self ):
|
||||||
|
self.assertEqual( "structTest", target.module.type( "g_structTest").name() )
|
||||||
|
self.assertEqual( "structTest", target.module.type( "g_testArray[0]").name() )
|
||||||
|
self.assertEqual( "structTest", target.module.type( "*g_structTestPtr").name() )
|
||||||
|
|
||||||
def testOffset( self ):
|
def testOffset( self ):
|
||||||
ti1 = target.module.type( "structTest" )
|
ti1 = target.module.type( "structTest" )
|
||||||
self.assertEqual( 0, ti1.m_field0.offset() )
|
self.assertEqual( 0, ti1.m_field0.offset() )
|
||||||
|
Loading…
Reference in New Issue
Block a user