Skip to content

Commit

Permalink
fix: Added missing ExcludeFromCodeCoverageAttribute (#130)
Browse files Browse the repository at this point in the history
* fix: Added missing `ExcludeFromCodeCoverageAttribute`

* fix: Added missing using
  • Loading branch information
samtrion authored Feb 12, 2024
1 parent 5ae146e commit c0f41c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Polyfill/EnumPolyfill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Diagnostics.CodeAnalysis;
using Link = System.ComponentModel.DescriptionAttribute;

[ExcludeFromCodeCoverage]
#if PolyPublic
public
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ namespace System.Text;

using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;

/// <summary>Provides a handler used by the language compiler to append interpolated strings into <see cref="StringBuilder"/> instances.</summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[InterpolatedStringHandler]
[ExcludeFromCodeCoverage]
#if PolyPublic
public
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ private bool TryFormatWithExtensions<T>(T value, ReadOnlySpan<char> format)
}
}

[ExcludeFromCodeCoverage]
static file class InternalMath
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Expand Down Expand Up @@ -806,6 +807,7 @@ private static void ThrowMinMaxException<T>(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}.";
Expand Down

0 comments on commit c0f41c6

Please sign in to comment.