-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixes #6 * update verison * prepare ppa release
- Loading branch information
Showing
5 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
__author__ = "Xavier MARCELET <[email protected]>" | ||
__copyright__ = "Copyright (C) 2016 Xavier MARCELET" | ||
__version__ = "1.3.0" | ||
__version__ = "1.3.1" | ||
__description__ = "Generate doxygen's documentation coverage report" | ||
__url__ = "https://github.com/psycofdj/coverxygen" | ||
__download_url__ = "https://github.com/psycofdj/coverxygen/tarball/%s" % __version__ | ||
|
@@ -86,14 +86,15 @@ def extract_name(p_node): | |
elif l_id is not None : | ||
return l_id | ||
Coverxygen.error("unable to deduce name from node %s", ET.tostring(p_node)) | ||
return None | ||
|
||
@staticmethod | ||
def extract_documented(p_node): | ||
for c_key in ["briefdescription", "detaileddescription", "inbodydescription"]: | ||
l_node = p_node.find("./%s" % c_key) | ||
if l_node is not None: | ||
l_content = "".join(l_node.itertext()).strip() | ||
if len(l_content): | ||
if l_content: | ||
return True | ||
return False | ||
|
||
|
@@ -145,7 +146,7 @@ def process_symbol(self, p_node, p_filePath): | |
@staticmethod | ||
def merge_symbols(p_results, p_symbols): | ||
for c_symbol in p_symbols: | ||
if not len(c_symbol): | ||
if not c_symbol: | ||
continue | ||
l_file = c_symbol["file"] | ||
if not l_file in p_results: | ||
|
@@ -223,7 +224,7 @@ def output_print_lcov(p_stream, p_results): | |
for c_item in c_data: | ||
l_value = 1 | ||
if not c_item["documented"]: | ||
l_value = -1 | ||
l_value = 0 | ||
p_stream.write("DA:%d,%d\n" % (c_item["line"], l_value)) | ||
p_stream.write("end_of_record\n") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
coverxygen (1.3.1ppa1~xenial) xenial; urgency=medium | ||
|
||
* fix generated value when item is undocumented | ||
|
||
-- Xavier MARCELET <[email protected]> Mon, 02 Jul 2018 13:26:17 +0200 | ||
|
||
coverxygen (1.3.1ppa1~trusty) xenial; urgency=medium | ||
|
||
* fix generated value when item is undocumented | ||
|
||
-- Xavier MARCELET <[email protected]> Mon, 02 Jul 2018 13:26:17 +0200 | ||
|
||
coverxygen (1.3.0ppa1~xenial) xenial; urgency=medium | ||
|
||
* strengthen and sanitize code | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
365d46d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatic build report for commit 365d46d:
365d46d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatic build report for commit 365d46d: