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

Use unified percentage calculation logic #1221

Merged
merged 1 commit into from
May 30, 2023

Conversation

Vampire
Copy link
Contributor

@Vampire Vampire commented May 26, 2023

Fixes #375
Supersedes #776

With this PR hopefully all percentage calculation uses the common logic introcuded in #638.
This should avoid everywhere showing 100% if not the full total is reached.

As a positive side-effect it also fixes a potential arithmetic exception in getTestStrength()
as it was not the divisor that was checked for zero to avoid it, probably by bad copy & paste.

@Vampire Vampire force-pushed the unified-percentage-calculation branch from 0ee4f1e to 28b8518 Compare May 26, 2023 10:30
@hcoles hcoles merged commit 54e3760 into hcoles:master May 30, 2023
@Vampire Vampire deleted the unified-percentage-calculation branch May 30, 2023 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mutationThreshold as 100 is not guaranty that all classes is covered by 100%
2 participants