Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coverage.rb: Fix handling of 0 total resources #805

Merged
merged 2 commits into from
Oct 15, 2020

Conversation

scotje
Copy link
Collaborator

@scotje scotje commented Oct 15, 2020

Supersedes #802

raemer and others added 2 commits August 19, 2020 20:43
If there are 0 total resources, a percentage of NaN was generated as
division by zero was not prevented. This checks if the divisor is zero
and sets the percentage to 100 if so.
@scotje scotje added this to the 2.8.x milestone Oct 15, 2020
@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 85.314% when pulling 23ee528 on scotje:maint_fixup_coverage_zero_resources into 310d8ff on rodjek:master.

@scotje scotje merged commit 6b25c3f into rodjek:master Oct 15, 2020
@scotje scotje deleted the maint_fixup_coverage_zero_resources branch October 15, 2020 22:46
@DavidS DavidS added the bug label Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants