Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Report 100% for empty Coverage objects #79

Merged
merged 1 commit into from
Feb 5, 2017
Merged

Conversation

kscaldef
Copy link

@kscaldef kscaldef commented Feb 2, 2017

If a section of code has no branches, we should report 100% branch coverage
not 0% coverage. This prevents spurious threshold violations for such code.

(This concern also applies to other coverage measures, although in practice
I've only encountered this problem for branches.)

Fixes JENKINS-25076 and JENKINS-29117

If a section of code has no branches, we should report 100% branch coverage
not 0% coverage.  This prevents spurious threshold violations for such code.

(This concern also applies to other coverage measures, although in practice
I've only encountered this problem for branches.)

Fixes JENKINS-25076 and JENKINS-29117
@centic9 centic9 merged commit 23ddac1 into jenkinsci:master Feb 5, 2017
@centic9
Copy link
Member

centic9 commented Feb 5, 2017

Thanks for the PR, this will be included in the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants