1
0
Oren Novotny 8 жил өмнө
parent
commit
016977d0f8

+ 15 - 0
Rx.NET/Source/src/System.Reactive.Observable.Aliases/ExcludeFromCodeCoverageAttribute.cs

@@ -0,0 +1,15 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information. 
+
+#if NO_CODE_COVERAGE_ATTRIBUTE
+
+namespace System.Diagnostics.CodeAnalysis
+{
+    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Event, Inherited = false)]
+    internal sealed class ExcludeFromCodeCoverageAttribute : Attribute
+    {
+    }
+}
+
+#endif

+ 2 - 0
Rx.NET/Source/src/System.Reactive.Observable.Aliases/Qbservable.Aliases.Generated.cs

@@ -17,6 +17,7 @@ using System.Reflection;
 using System.Threading;
 using System.Reactive;
 using System.Reactive.Subjects;
+using System.Diagnostics.CodeAnalysis;
 #if !NO_TPL
 using System.Threading.Tasks;
 #endif
@@ -26,6 +27,7 @@ using System.Runtime.Remoting.Lifetime;
 
 namespace System.Reactive.Linq
 {
+    [ExcludeFromCodeCoverage]
     public static partial class QbservableAliases
     {
         /// <summary>