< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.UnixDomainSocketUri
Assembly: CoreWCF.UnixDomainSocket
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.UnixDomainSocket/src/CoreWCF/Channels/UnixDomainSocketHelper.cs
Line coverage
75%
Covered lines: 3
Uncovered lines: 1
Coverable lines: 4
Total lines: 16
Line coverage: 75%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.cctor()100%11100%
Validate(...)50%2266.66%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.UnixDomainSocket/src/CoreWCF/Channels/UnixDomainSocketHelper.cs

#LineLine coverage
 1using System;
 2using CoreWCF.Runtime;
 3
 4namespace CoreWCF.Channels
 5{
 6    internal static class UnixDomainSocketUri
 7    {
 18        public static string UriSchemeUDS = "net.uds";
 9        public static void Validate(Uri uri)
 10        {
 311            if (uri.Scheme != UriSchemeUDS)
 012                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(uri), SR.UDSUriSchemeWrong);
 313        }
 14    }
 15}
 16

Methods/Properties

.cctor()
Validate(System.Uri)