Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Todd Hartman
pykd
Commits
a3da177d
Commit
a3da177d
authored
Jul 30, 2019
by
ussrhero
Browse files
fixed typeinfo tests
parent
badd9762
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
test/scripts/typeinfo.py
test/scripts/typeinfo.py
+7
-1
No files found.
test/scripts/typeinfo.py
View file @
a3da177d
...
...
@@ -354,7 +354,7 @@ class TypeInfoTest( unittest.TestCase ):
typeProvider
=
pykd
.
getTypeInfoProviderFromPdb
(
pdb
)
self
.
assertEqual
(
"structTest"
,
typeProvider
.
getTypeByName
(
"structTest"
).
name
())
self
.
assertEqual
(
"structTest"
,
typeProvider
.
structTest
.
name
())
self
.
assertEqual
(
1
3
,
len
(
list
(
typeProvider
.
typeIterator
(
"*struct*"
))))
self
.
assertEqual
(
1
6
,
len
(
list
(
typeProvider
.
typeIterator
(
"*struct*"
))))
def
testScopeName
(
self
):
self
.
assertEqual
(
target
.
module
.
name
(),
pykd
.
typeInfo
(
"structTest"
).
scopeName
()
)
...
...
@@ -365,3 +365,9 @@ class TypeInfoTest( unittest.TestCase ):
self
.
assertTrue
(
"m_field1"
in
ti
)
self
.
assertFalse
(
"NotExist"
in
ti
)
self
.
assertRaises
(
Exception
,
lambda
t
:
2
in
t
,
ti
)
def
testTemplateType
(
self
):
ti
=
target
.
module
.
type
(
"g_testTemplateTwoTypes"
)
self
.
assertTrue
(
ti
.
isTemplate
)
self
.
assertEqual
([
'int'
,
'TestClassTemplate<int>'
],
ti
.
getTemplateArgs
()
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment