< Summary - Code Coverage

Information
Class: Plainquire.Filter.Abstractions.Exceptions.UnreachableException
Assembly: Plainquire.Filter.Abstractions
File(s): /home/runner/work/plainquire/plainquire/Plainquire.Filter/Plainquire.Filter.Abstractions/Exceptions/UnreachableException.cs
Tag: 64_13932151703
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 41
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
0%
Covered methods: 0
Total methods: 3
Method coverage: 0%

Metrics

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

File(s)

/home/runner/work/plainquire/plainquire/Plainquire.Filter/Plainquire.Filter.Abstractions/Exceptions/UnreachableException.cs

#LineLine coverage
 1using System;
 2
 3namespace Plainquire.Filter.Abstractions.Exceptions;
 4
 5// Copy from .NET 7, System.Diagnostics.UnreachableException
 6
 7/// <summary>
 8/// Exception thrown when the program executes an instruction that was thought to be unreachable.
 9/// </summary>
 10public sealed class UnreachableException : Exception
 11{
 12    /// <summary>
 13    /// Initializes a new instance of the <see cref="UnreachableException"/> class with the default error message.
 14    /// </summary>
 15    public UnreachableException()
 016        : base("The program executed an instruction that was thought to be unreachable.")
 17    {
 018    }
 19
 20    /// <summary>
 21    /// Initializes a new instance of the <see cref="UnreachableException"/>
 22    /// class with a specified error message.
 23    /// </summary>
 24    /// <param name="message">The error message that explains the reason for the exception.</param>
 25    public UnreachableException(string? message)
 026        : base(message)
 27    {
 028    }
 29
 30    /// <summary>
 31    /// Initializes a new instance of the <see cref="UnreachableException"/>
 32    /// class with a specified error message and a reference to the inner exception that is the cause of
 33    /// this exception.
 34    /// </summary>
 35    /// <param name="message">The error message that explains the reason for the exception.</param>
 36    /// <param name="innerException">The exception that is the cause of the current exception.</param>
 37    public UnreachableException(string? message, Exception? innerException)
 038        : base(message, innerException)
 39    {
 040    }
 41}