< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Description.PolicyVersion
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Description/PolicyVersion.cs
Line coverage
75%
Covered lines: 6
Uncovered lines: 2
Coverable lines: 8
Total lines: 21
Line coverage: 75%
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%11100%
ToString()100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Description/PolicyVersion.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 CoreWCF.Description
 5{
 6    public sealed class PolicyVersion
 7    {
 28        PolicyVersion(string policyNamespace)
 9        {
 210            Namespace = policyNamespace;
 211        }
 12
 30613        public static PolicyVersion Policy12 { get; } = new PolicyVersion(MetadataStrings.WSPolicy.NamespaceUri);
 114        public static PolicyVersion Policy15 { get; } = new PolicyVersion(MetadataStrings.WSPolicy.NamespaceUri15);
 015        public static PolicyVersion Default { get { return Policy12; } }
 16
 25317        public string Namespace { get; }
 18
 019        public override string ToString() => Namespace;
 20    }
 21}