< Summary

Information
Class: IceRpc.Internal.ExceptionUtil
Assembly: IceRpc
File(s): /home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc/Internal/ExceptionUtil.cs
Tag: 275_13775359185
Line coverage
40%
Covered lines: 2
Uncovered lines: 3
Coverable lines: 5
Total lines: 18
Line coverage: 40%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 1
Total methods: 1
Method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
Throw(...)100%1.22140%

File(s)

/home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc/Internal/ExceptionUtil.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3using System.Diagnostics;
 4using System.Runtime.ExceptionServices;
 5
 6namespace IceRpc.Internal;
 7
 8internal static class ExceptionUtil
 9{
 10    /// <summary>Rethrows an exception while preserving its stack trace. This method does not return and
 11    /// is typically called as: <c>throw ExceptionUtil.Throw(ex);</c>.</summary>
 12    internal static Exception Throw(Exception exception)
 23113    {
 23114        ExceptionDispatchInfo.Throw(exception);
 015        Debug.Assert(false);
 016        return exception;
 017    }
 18}

Methods/Properties

Throw(System.Exception)