< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Runtime.FatalException
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/Common/src/CoreWCF/Runtime/FatalException.cs
Line coverage
33%
Covered lines: 2
Uncovered lines: 4
Coverable lines: 6
Total lines: 30
Line coverage: 33.3%
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%
.ctor(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/Common/src/CoreWCF/Runtime/FatalException.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;
 5using System.Diagnostics.Contracts;
 6
 7namespace CoreWCF.Runtime
 8{
 9    // TODO: This is in internals so probably needs to go away
 10    internal class FatalException : Exception //SystemException
 11    {
 012        public FatalException()
 13        {
 014        }
 015        public FatalException(string message) : base(message)
 16        {
 017        }
 18
 1019        public FatalException(string message, Exception innerException) : base(message, innerException)
 20        {
 21            // This can't throw something like ArgumentException because that would be worse than
 22            // throwing the fatal exception that was requested.
 23            Contract.Assert(innerException == null || !Fx.IsFatal(innerException), "FatalException can't be used to wrap
 1024        }
 25
 26        //protected FatalException(SerializationInfo info, StreamingContext context) : base(info, context)
 27        //{
 28        //}
 29    }
 30}