Skip to content

Commit ce34382

Browse files
committedJul 26, 2016
Fix sip coverage test
By working around doxygen bug where private members are listed as public
1 parent a53c2e6 commit ce34382

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎tests/src/python/utilities.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ def parseClassElem(self, e):
453453
for m in e.getiterator('memberdef'):
454454
if self.elemIsBindableMember(m):
455455
bindable_member = [e.find('compoundname').text, m.find('name').text]
456+
456457
if not bindable_member in bindable_members:
457458
bindable_members.append(bindable_member)
458459
if self.elemIsDocumentableMember(m):
@@ -481,6 +482,17 @@ def elemIsBindableMember(self, elem):
481482
:param elem: XML element for a class member
482483
"""
483484

485+
name = elem.find('name').text
486+
# hack to work around doxygen mistakenly flagging some private members as public
487+
if name in ['runBlockOperationInThreads',
488+
'runLineOperation',
489+
'runLineOperationOnWholeImage',
490+
'runPixelOperation',
491+
'runPixelOperationOnWholeImage',
492+
'runRectOperation',
493+
'runRectOperationOnWholeImage']:
494+
return False
495+
484496
# only public or protected members are bindable
485497
if not self.visibility(elem) in ('public', 'protected'):
486498
return False

0 commit comments

Comments
 (0)
Please sign in to comment.