Skip to content

Commit

Permalink
collect_non_report_files: use 0 instead of None for no coverage
Browse files Browse the repository at this point in the history
Otherwise it shows up as 100% covered in Coveralls.
  • Loading branch information
blueyed committed Feb 18, 2019
1 parent 6ed9f8f commit 0104dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp_coveralls/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def collect_non_report_files(args, discovered_files):
coverage = []
with io.open(abs_filepath, mode='rb') as fobj:
for _ in fobj:
coverage.append(None)
coverage.append(0)
fobj.seek(0)
src_report['source_digest'] = hashlib.md5(fobj.read()).hexdigest()
src_report['coverage'] = coverage
Expand Down

0 comments on commit 0104dbb

Please sign in to comment.