< Summary - Envilder .NET SDK

Information
Class: Envilder.Infrastructure.ErrorReason
Assembly: Envilder
File(s): /home/runner/work/envilder/envilder/src/sdks/dotnet/Infrastructure/ErrorReason.cs
Tag: 605_44106794472
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 17
Line coverage: 100%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
Describe(...)50%22100%

File(s)

/home/runner/work/envilder/envilder/src/sdks/dotnet/Infrastructure/ErrorReason.cs

#LineLine coverage
 1namespace Envilder.Infrastructure;
 2
 3using System;
 4
 5internal static class ErrorReason
 6{
 7  /// <summary>
 8  /// The exception message, or its type name when the message is empty, so a
 9  /// reason is never blank.
 10  /// </summary>
 11  public static string Describe(Exception exception)
 12  {
 113    return string.IsNullOrWhiteSpace(exception.Message)
 114      ? exception.GetType().Name
 115      : exception.Message;
 16  }
 17}

Methods/Properties

Describe(System.Exception)