Skip to content

Commit 094ba80

Browse files
committed
collect_non_report_files: use 0 instead of None for no coverage
Otherwise it shows up as 100% covered in Coveralls.
1 parent d030c29 commit 094ba80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp_coveralls/coverage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def collect_non_report_files(args, discovered_files):
355355
coverage = []
356356
with io.open(abs_filepath, mode='rb') as fobj:
357357
for _ in fobj:
358-
coverage.append(None)
358+
coverage.append(0)
359359
fobj.seek(0)
360360
src_report['source_digest'] = hashlib.md5(fobj.read()).hexdigest()
361361
src_report['coverage'] = coverage

0 commit comments

Comments
 (0)