Skip to content

Commit

Permalink
Update doc coverage test
Browse files Browse the repository at this point in the history
- Ignore deprecated stuff
- Ignore on_* members
  • Loading branch information
nyalldawson committed Aug 31, 2015
1 parent 0b15d8b commit a19cb94
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/src/python/test_qgsdoccoverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# DON'T RAISE THIS THRESHOLD!!!
# (changes which lower this threshold are welcomed though!)

ACCEPTABLE_MISSING_DOCS = 4229
ACCEPTABLE_MISSING_DOCS = 4066


def elemIsDocumentableClass(elem):
Expand Down Expand Up @@ -94,6 +94,21 @@ def elemIsDocumentableMember(elem):
except:
pass

#ignore on_* slots
try:
if name.text.startswith('on_'):
return False
except:
pass

#ignore deprecated members
typeelem = elem.find('type')
try:
if typeelem.text and 'Q_DECL_DEPRECATED' in typeelem.text:
return False
except:
pass

return True


Expand Down

0 comments on commit a19cb94

Please sign in to comment.