Skip to content

Commit a19cb94

Browse files
committedAug 31, 2015
Update doc coverage test
- Ignore deprecated stuff - Ignore on_* members
1 parent 0b15d8b commit a19cb94

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed
 

‎tests/src/python/test_qgsdoccoverage.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# DON'T RAISE THIS THRESHOLD!!!
3333
# (changes which lower this threshold are welcomed though!)
3434

35-
ACCEPTABLE_MISSING_DOCS = 4229
35+
ACCEPTABLE_MISSING_DOCS = 4066
3636

3737

3838
def elemIsDocumentableClass(elem):
@@ -94,6 +94,21 @@ def elemIsDocumentableMember(elem):
9494
except:
9595
pass
9696

97+
#ignore on_* slots
98+
try:
99+
if name.text.startswith('on_'):
100+
return False
101+
except:
102+
pass
103+
104+
#ignore deprecated members
105+
typeelem = elem.find('type')
106+
try:
107+
if typeelem.text and 'Q_DECL_DEPRECATED' in typeelem.text:
108+
return False
109+
except:
110+
pass
111+
97112
return True
98113

99114

0 commit comments

Comments
 (0)
Please sign in to comment.