Skip to content

Commit

Permalink
fix: exclude assembly from code coverage. (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
codito committed Feb 10, 2024
1 parent c26414c commit bf2d130
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/TestLogger/Assembly.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
// Copyright (c) Spekt Contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

// <auto-generated>
// Skip code analysis errors.
// </auto-generated>

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

[assembly: InternalsVisibleTo("Json.TestLogger")]
[assembly: InternalsVisibleTo("Json.TestAdapter")]
[assembly: InternalsVisibleTo("TestLogger.UnitTests")]
[assembly: ExcludeFromCodeCoverage]

namespace System.Diagnostics.CodeAnalysis
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Event | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
internal sealed class ExcludeFromCodeCoverageAttribute : Attribute { }
}

0 comments on commit bf2d130

Please sign in to comment.