mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 21:03:23 +08:00
[0.2.x] ~ all types mask is empty string
git-svn-id: https://pykd.svn.codeplex.com/svn@80754 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
2a54a81ca7
commit
d0c15a75a1
@ -105,7 +105,7 @@ public:
|
|||||||
|
|
||||||
python::list enumSymbols( const std::string &mask = "*" );
|
python::list enumSymbols( const std::string &mask = "*" );
|
||||||
|
|
||||||
python::list enumTypes( const std::string &mask = "*" );
|
python::list enumTypes( const std::string &mask = std::string() );
|
||||||
|
|
||||||
std::string print();
|
std::string print();
|
||||||
|
|
||||||
|
@ -83,13 +83,20 @@ class ModuleTest( unittest.TestCase ):
|
|||||||
lst = target.module.enumSymbols( "classChild" )
|
lst = target.module.enumSymbols( "classChild" )
|
||||||
self.assertEqual( 0, len(lst) )
|
self.assertEqual( 0, len(lst) )
|
||||||
|
|
||||||
|
|
||||||
def testEnumTypes( self ):
|
def testEnumTypes( self ):
|
||||||
lst = target.module.enumTypes()
|
lst1 = target.module.enumTypes()
|
||||||
self.assertNotEqual( 0, len(lst) )
|
self.assertNotEqual( 0, len(lst1) )
|
||||||
lst = target.module.enumTypes("*class*")
|
|
||||||
self.assertEqual( 2, len(lst) )
|
self.assertTrue( "classChild" in lst1 )
|
||||||
self.assertTrue( "classChild" in lst )
|
self.assertTrue( "classBase" in lst1 )
|
||||||
self.assertTrue( "classBase" in lst )
|
self.assertTrue( "structTest" in lst1 )
|
||||||
lst = target.module.enumTypes("hello*Str")
|
|
||||||
self.assertEqual( 0, len(lst) )
|
lst2 = target.module.enumTypes("*class*")
|
||||||
|
self.assertEqual( 2, len(lst2) )
|
||||||
|
self.assertTrue( len(lst1) > len(lst2) )
|
||||||
|
|
||||||
|
self.assertTrue( "classChild" in lst2 )
|
||||||
|
self.assertTrue( "classBase" in lst2 )
|
||||||
|
|
||||||
|
lst3 = target.module.enumTypes("hello*Str")
|
||||||
|
self.assertEqual( 0, len(lst3) )
|
||||||
|
Loading…
Reference in New Issue
Block a user