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
the first, non-generic method Demo() will have a 100% branch coverage. The branch coverage of generic method, Demo<T>(), will show a missing branch on line return result; (1 visits, 3 of 4 branches are covered).
Unless I missed something, I would expect the branch coverage to be 100% in both cases.
The text was updated successfully, but these errors were encountered:
Hi.
Using coverlet.msbuild.6.0.0, I noticed an issue with code coverage in generic methods that contain
await using
.Here's a short example which reproduces the issue:
Given the following tests:
the first, non-generic method
Demo()
will have a 100% branch coverage. The branch coverage of generic method,Demo<T>()
, will show a missing branch on linereturn result;
(1 visits, 3 of 4 branches are covered).Unless I missed something, I would expect the branch coverage to be 100% in both cases.
The text was updated successfully, but these errors were encountered: