Code that throws System.Diagnostics.UnreachableException should not be counted as not covered.
.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.
This issue is stale because it has been open for 3 months with no activity.
Please keep it open, I still think it would be very useful.
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.
This issue is stale because it has been open for 3 months with no activity.