< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Dispatcher.NetDispatcherFaultException
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Dispatcher/NetDispatcherFaultException.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 27
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%
.ctor(...)100%110%
CreateDeserializationFailedFault(...)100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Dispatcher/NetDispatcherFaultException.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.Dispatcher
 7{
 8    public class NetDispatcherFaultException : FaultException
 9    {
 10        public NetDispatcherFaultException(string reason, FaultCode code, Exception innerException)
 011            : base(reason, code, FaultCodeConstants.Actions.NetDispatcher, innerException)
 12        {
 013        }
 14        public NetDispatcherFaultException(FaultReason reason, FaultCode code, Exception innerException)
 015            : base(reason, code, FaultCodeConstants.Actions.NetDispatcher, innerException)
 16        {
 017        }
 18
 19        public static NetDispatcherFaultException CreateDeserializationFailedFault(string reason, Exception innerExcepti
 20        {
 021            reason = SR.Format(SR.SFxDeserializationFailed1, reason);
 022            FaultCode code = new FaultCode(FaultCodeConstants.Codes.DeserializationFailed, FaultCodeConstants.Namespaces
 023            code = FaultCode.CreateSenderFaultCode(code);
 024            return new NetDispatcherFaultException(reason, code, innerException);
 25        }
 26    }
 27}