add ExcludeFromCodeCoverageAttribute
authorJb Evain <jbevain@gmail.com>
Tue, 6 Apr 2010 14:56:10 +0000 (14:56 -0000)
committerJb Evain <jbevain@gmail.com>
Tue, 6 Apr 2010 14:56:10 +0000 (14:56 -0000)
svn path=/trunk/mcs/; revision=154847

mcs/class/System/System.Diagnostics.CodeAnalysis/ChangeLog [new file with mode: 0644]
mcs/class/System/System.Diagnostics.CodeAnalysis/ExcludeFromCodeCoverageAttribute.cs [new file with mode: 0644]
mcs/class/System/System.dll.sources

diff --git a/mcs/class/System/System.Diagnostics.CodeAnalysis/ChangeLog b/mcs/class/System/System.Diagnostics.CodeAnalysis/ChangeLog
new file mode 100644 (file)
index 0000000..17d25b0
--- /dev/null
@@ -0,0 +1,3 @@
+2010-04-06  Jb Evain  <jbevain@novell.com>
+
+       * ExcludeFromCodeCoverageAttribute.cs: new attribute.
diff --git a/mcs/class/System/System.Diagnostics.CodeAnalysis/ExcludeFromCodeCoverageAttribute.cs b/mcs/class/System/System.Diagnostics.CodeAnalysis/ExcludeFromCodeCoverageAttribute.cs
new file mode 100644 (file)
index 0000000..fb6fb5b
--- /dev/null
@@ -0,0 +1,52 @@
+//
+// ExcludeFromCodeCoverageAttribute.cs
+//
+// Authors:
+//  Jb Evain  <jbevain@novell.com>
+//
+// Copyright (C) 2010 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Runtime.InteropServices;
+
+#if NET_4_0
+
+namespace System.Diagnostics.CodeAnalysis {
+
+       [AttributeUsage (AttributeTargets.Class
+               | AttributeTargets.Struct
+               | AttributeTargets.Constructor
+               | AttributeTargets.Method
+               | AttributeTargets.Property
+               | AttributeTargets.Event,
+               AllowMultiple = false,
+               Inherited = false)]
+       public class ExcludeFromCodeCoverageAttribute : Attribute, _Attribute
+       {
+               public ExcludeFromCodeCoverageAttribute ()
+               {
+               }
+       }
+}
+
+#endif
index 1e70449d00d119612cf35b7ea7930ca272068e50..06e1a5b248e1c4c12e921125c9a4acb58a71b568 100644 (file)
@@ -567,6 +567,7 @@ System.Diagnostics/TraceSourceInfo.cs
 System.Diagnostics/TraceSwitch.cs
 System.Diagnostics/Win32EventLog.cs
 System.Diagnostics/XmlWriterTraceListener.cs
+System.Diagnostics.CodeAnalysis/ExcludeFromCodeCoverageAttribute.cs
 System/FileStyleUriParser.cs
 System/FtpStyleUriParser.cs
 System/GenericUriParser.cs