pykd/test/scripts/typeinfo.py
SND\kernelnet_cp f86dca719a [0.1.x] added : typeInfo class based at DIA
git-svn-id: https://pykd.svn.codeplex.com/svn@70175 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:06:26 +04:00

21 lines
456 B
Python

#
#
#
import unittest
import target
import pykd
class TypeInfoTest( unittest.TestCase ):
def testCtor( self ):
""" typeInfo class can not be created direct """
try: pykd.typeInfo()
except RuntimeError: pass
def testCreateByName( self ):
""" creating typeInfo by the type name """
ti1 = target.module.type( "structTest" )
ti2 = target.module.type( "classChild" )