mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
21 lines
456 B
Python
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" )
|
|
|