Skip to content

Commit 1ff097d

Browse files
authored
Wrong branch coverage for async methods .NET Standard 1.x (#1433)
Wrong branch coverage for async methods .NET Standard 1.x
1 parent 04b82c2 commit 1ff097d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Documentation/Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Fixed
1010
-Incorrect coverage for methods returning IAsyncEnumerable in generic classes [#1383](https://github.com/coverlet-coverage/coverlet/issues/1383)
11+
-Wrong branch coverage for async methods .NET Standard 1.x [#1376](https://github.com/coverlet-coverage/coverlet/issues/1376)
1112
-Allign published nuget package version to github release version [#1413](https://github.com/coverlet-coverage/coverlet/issues/1413)
1213
-Sync nuget and github release versions [#1122](https://github.com/coverlet-coverage/coverlet/issues/1122)
1314

src/coverlet.core/Symbols/CecilSymbolHelper.cs

+1
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ instruction.Previous.Operand is MethodReference operand &&
199199
operand.DeclaringType.Scope.Name == "System.Runtime" ||
200200
operand.DeclaringType.Scope.Name == "netstandard" ||
201201
operand.DeclaringType.Scope.Name == "mscorlib" ||
202+
operand.DeclaringType.Scope.Name == "System.Threading.Tasks" ||
202203
operand.DeclaringType.Scope.Name == "System.Threading.Tasks.Extensions"
203204
)
204205
)

0 commit comments

Comments
 (0)