diff --git a/Documentation/Changelog.md b/Documentation/Changelog.md index af26e722c..d0dcaae50 100644 --- a/Documentation/Changelog.md +++ b/Documentation/Changelog.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -Incorrect coverage for methods returning IAsyncEnumerable in generic classes [#1383](https://github.com/coverlet-coverage/coverlet/issues/1383) +-Wrong branch coverage for async methods .NET Standard 1.x [#1376](https://github.com/coverlet-coverage/coverlet/issues/1376) -Allign published nuget package version to github release version [#1413](https://github.com/coverlet-coverage/coverlet/issues/1413) -Sync nuget and github release versions [#1122](https://github.com/coverlet-coverage/coverlet/issues/1122) diff --git a/src/coverlet.core/Symbols/CecilSymbolHelper.cs b/src/coverlet.core/Symbols/CecilSymbolHelper.cs index ec77c9fe2..930d19ede 100644 --- a/src/coverlet.core/Symbols/CecilSymbolHelper.cs +++ b/src/coverlet.core/Symbols/CecilSymbolHelper.cs @@ -199,6 +199,7 @@ instruction.Previous.Operand is MethodReference operand && operand.DeclaringType.Scope.Name == "System.Runtime" || operand.DeclaringType.Scope.Name == "netstandard" || operand.DeclaringType.Scope.Name == "mscorlib" || + operand.DeclaringType.Scope.Name == "System.Threading.Tasks" || operand.DeclaringType.Scope.Name == "System.Threading.Tasks.Extensions" ) )