Skip to content

Commit

Permalink
Make doc coverage test acceptable list case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 20, 2016
1 parent 4cfacf1 commit 2685a90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/src/python/utilities.py
Expand Up @@ -453,7 +453,10 @@ def parseFile(self, f):

unacceptable_undocumented = undocumented - set(acceptable_missing)

if len(unacceptable_undocumented) > 0:
# do a case insensitive check too
unacceptable_undocumented_insensitive = set([u.lower() for u in undocumented]) - set([u.lower() for u in acceptable_missing])

if len(unacceptable_undocumented_insensitive) > 0:
self.undocumented_string += "Class {}, {}/{} members documented\n".format(class_name, documented, members)
for u in unacceptable_undocumented:
self.undocumented_string += ' Missing: {}\n'.format(u)
Expand Down

0 comments on commit 2685a90

Please sign in to comment.