Skip to content

Commit

Permalink
Exclude "UnreachableException" from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed Jan 17, 2023
1 parent 0bcf5ba commit 4f53d4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MoreLinq/UnreachableException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ namespace MoreLinq
/// Exception thrown when the program executes an instruction that was thought to be unreachable.
/// </summary>

#if !NETSTANDARD1_0
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
#pragma warning disable CA1064 // Exceptions should be public
sealed class UnreachableException : Exception
#pragma warning restore CA1064 // Exceptions should be public
Expand Down

0 comments on commit 4f53d4c

Please sign in to comment.