< Summary - Syki

Information
Class: Syki.Back.Extensions.AppVersion
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Extensions/AppVersion.cs
Tag: 56_26538939494
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 11
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 Crap Score Cyclomatic complexity Line coverage
get_Value()100%210%
.cctor()0%4260%

File(s)

/home/runner/work/syki/syki/Back/Extensions/AppVersion.cs

#LineLine coverage
 1using System.Reflection;
 2
 3namespace Syki.Back.Extensions;
 4
 5public static class AppVersion
 6{
 07    public static string Value { get; } = Assembly.GetEntryAssembly()?
 08        .GetCustomAttribute<AssemblyInformationalVersionAttribute>()?
 09        .InformationalVersion
 010        .Split('+').Last()[..7] ?? "unknown";
 11}

Methods/Properties

get_Value()
.cctor()