< Summary - CoreWCF Coverage — PR #1766

Information
Class: System.Runtime.Versioning.SupportedOSPlatformAttribute
Assembly: CoreWCF.WebHttp
File(s): /home/runner/work/CoreWCF/CoreWCF/src/Common/src/System/Runtime/Versioning/SupportedOSPlatformAttribute.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 33
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/Common/src/System/Runtime/Versioning/SupportedOSPlatformAttribute.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4namespace System.Runtime.Versioning
 5{
 6    internal abstract class OSPlatformAttribute : Attribute
 7    {
 8        private protected OSPlatformAttribute(string platformName)
 9        {
 10            PlatformName = platformName;
 11        }
 12
 13        public string PlatformName { get; }
 14    }
 15
 16    [AttributeUsage(AttributeTargets.Assembly |
 17                    AttributeTargets.Class |
 18                    AttributeTargets.Constructor |
 19                    AttributeTargets.Enum |
 20                    AttributeTargets.Event |
 21                    AttributeTargets.Field |
 22                    AttributeTargets.Method |
 23                    AttributeTargets.Module |
 24                    AttributeTargets.Property |
 25                    AttributeTargets.Struct,
 26                    AllowMultiple = true, Inherited = false)]
 27    internal sealed class SupportedOSPlatformAttribute : OSPlatformAttribute
 28    {
 029        public SupportedOSPlatformAttribute(string platformName) : base(platformName)
 30        {
 031        }
 32    }
 33}

Methods/Properties

.ctor(System.String)