You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: