Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
BUG: Fix coverage calculation for empty files #2
Conversation
|
Had to rebase this so it will apply on top of #1. This is now done. |
|
Thanks for the rebase and the fix. |
nno
added a commit
that referenced
this pull request
Feb 1, 2016
|
|
nno |
924fd09
|
nno
merged commit 924fd09
into
MOcov:master
Feb 1, 2016
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
scottclowe
deleted the
scottclowe:fix-empty-coverage branch
Feb 1, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
scottclowe commentedFeb 1, 2016
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 coverage.
Previously, files without any executable lines would report a
coverage of "NaN%", due to the division by 0.