coverlet icon indicating copy to clipboard operation
coverlet copied to clipboard

Code that throws System.Diagnostics.UnreachableException should not be counted as not covered.

Open dnperfors opened this issue 3 years ago • 5 comments

.NET 7 introduced the UnreachableException, which is basically meant to never been thrown. It is often used in switch statements where a default case is required by the compiler, but most of the time shouldn't be reached. Coverlet shows the default case as uncovered, but it would be nice to not count this as not covered, since as the exception says the code can't normally be reached.

dnperfors avatar Nov 25 '22 12:11 dnperfors

This issue is stale because it has been open for 3 months with no activity.

github-actions[bot] avatar Sep 03 '23 01:09 github-actions[bot]

Please keep it open, I still think it would be very useful.

dnperfors avatar Sep 03 '23 05:09 dnperfors

Thanks for the feedback @dnperfors. We are currently trying to automate our issue processing a bit with some actions. Currently issues with a stale label get closed after 9 months. If this happens they can be reopened again.

daveMueller avatar Sep 03 '23 20:09 daveMueller

This issue is stale because it has been open for 3 months with no activity.

github-actions[bot] avatar Dec 03 '23 01:12 github-actions[bot]