Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix sip coverage test
By working around doxygen bug where private members are listed
as public
  • Loading branch information
nyalldawson committed Jul 26, 2016
1 parent a53c2e6 commit ce34382
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/src/python/utilities.py
Expand Up @@ -453,6 +453,7 @@ def parseClassElem(self, e):
for m in e.getiterator('memberdef'):
if self.elemIsBindableMember(m):
bindable_member = [e.find('compoundname').text, m.find('name').text]

if not bindable_member in bindable_members:
bindable_members.append(bindable_member)
if self.elemIsDocumentableMember(m):
Expand Down Expand Up @@ -481,6 +482,17 @@ def elemIsBindableMember(self, elem):
:param elem: XML element for a class member
"""

name = elem.find('name').text
# hack to work around doxygen mistakenly flagging some private members as public
if name in ['runBlockOperationInThreads',
'runLineOperation',
'runLineOperationOnWholeImage',
'runPixelOperation',
'runPixelOperationOnWholeImage',
'runRectOperation',
'runRectOperationOnWholeImage']:
return False

# only public or protected members are bindable
if not self.visibility(elem) in ('public', 'protected'):
return False
Expand Down

0 comments on commit ce34382

Please sign in to comment.