< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Security.NegotiateInternal.NegotiateInternalSecurityStatusPal
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/NegotiateInternal/NegotiateInternalSecurityStatusPal.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 27
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

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

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/NegotiateInternal/NegotiateInternalSecurityStatusPal.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
 4using System;
 5
 6namespace CoreWCF.Security.NegotiateInternal
 7{
 8    internal readonly struct NegotiateInternalSecurityStatusPal
 9    {
 10        public readonly NegotiateInternalSecurityStatusErrorCode ErrorCode;
 11        public readonly Exception Exception;
 12
 13        public NegotiateInternalSecurityStatusPal(NegotiateInternalSecurityStatusErrorCode errorCode, Exception exceptio
 14        {
 015            ErrorCode = errorCode;
 016            Exception = exception;
 017        }
 18
 19        public override string ToString()
 20        {
 021            return Exception == null ?
 022                $"{nameof(ErrorCode)}={ErrorCode}" :
 023                $"{nameof(ErrorCode)}={ErrorCode}, {nameof(Exception)}={Exception}";
 24        }
 25
 26    }
 27}