Skip to content
Permalink
Browse files

Update doc coverage test

- Ignore deprecated stuff
- Ignore on_* members
  • Loading branch information
nyalldawson committed Aug 31, 2015
1 parent 0b15d8b commit a19cb945d01a16c2b6b49624a65fd308ea279ef1
Showing with 16 additions and 1 deletion.
  1. +16 −1 tests/src/python/test_qgsdoccoverage.py
@@ -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):
@@ -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


0 comments on commit a19cb94

Please sign in to comment.
You can’t perform that action at this time.