diff --git a/src/Polyfill/EnumPolyfill.cs b/src/Polyfill/EnumPolyfill.cs index 6fc36ddd..c7beb00a 100644 --- a/src/Polyfill/EnumPolyfill.cs +++ b/src/Polyfill/EnumPolyfill.cs @@ -7,6 +7,7 @@ using System.Diagnostics.CodeAnalysis; using Link = System.ComponentModel.DescriptionAttribute; +[ExcludeFromCodeCoverage] #if PolyPublic public #endif diff --git a/src/Polyfill/StringInterpolation/AppendInterpolatedStringHandler.cs b/src/Polyfill/StringInterpolation/AppendInterpolatedStringHandler.cs index d088b3c0..fa58329e 100644 --- a/src/Polyfill/StringInterpolation/AppendInterpolatedStringHandler.cs +++ b/src/Polyfill/StringInterpolation/AppendInterpolatedStringHandler.cs @@ -8,11 +8,13 @@ namespace System.Text; using System.ComponentModel; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; /// Provides a handler used by the language compiler to append interpolated strings into instances. [EditorBrowsable(EditorBrowsableState.Never)] [InterpolatedStringHandler] +[ExcludeFromCodeCoverage] #if PolyPublic public #endif diff --git a/src/Polyfill/StringInterpolation/DefaultInterpolatedStringHandler.cs b/src/Polyfill/StringInterpolation/DefaultInterpolatedStringHandler.cs index b15eec55..6120c3b2 100644 --- a/src/Polyfill/StringInterpolation/DefaultInterpolatedStringHandler.cs +++ b/src/Polyfill/StringInterpolation/DefaultInterpolatedStringHandler.cs @@ -779,6 +779,7 @@ private bool TryFormatWithExtensions(T value, ReadOnlySpan format) } } +[ExcludeFromCodeCoverage] static file class InternalMath { [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -806,6 +807,7 @@ private static void ThrowMinMaxException(T min, T max) => throw new ArgumentException(string.Format(SR.Argument_MinMaxValue, min, max)); } +[ExcludeFromCodeCoverage] static file class SR { public const string Argument_MinMaxValue = "'{0}' cannot be greater than {1}.";