Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

100% code coverage #37

Closed
turdusmerula opened this issue Jan 17, 2013 · 1 comment
Closed

100% code coverage #37

turdusmerula opened this issue Jan 17, 2013 · 1 comment

Comments

@turdusmerula
Copy link

When there is a need of 100% code coverage over tests there is always cases where this target can be met ...
For example we have a mandatory quality rule to always have a default case on a switch block but when default case is unreachable we can't have the 100% target.
Second example in defensive code a catch block whose exception can not be fired by unit test makes the code under the wanted 100%.

It would be interesting to have a way to filter known unreachable code from the analysis or from the report with a special comment block for example.

@turdusmerula
Copy link
Author

I just seen that the same thing was also asked for jacoco
jacoco/jacoco#15

@marchof marchof closed this as completed Jan 17, 2013
@jacoco jacoco locked and limited conversation to collaborators Jan 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants