Permalink
Please sign in to comment.
Browse files
BUG: Fix coverage calculation for empty files
For files with no executable lines, the coverage report should have a nominal 100% coverage rate. This is the behaviour of other coverage packages, such as those for Python. Previously, files without any executable lines would report a coverage of "NaN%", due to the division by 0.
- Loading branch information...
Showing
with
27 additions
and 5 deletions.
0 comments on commit
41dcc01