< Summary - Syki

Information
Class: Syki.Back.Extensions.AppVersion
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Extensions/AppVersion.cs
Tag: 97_27801654829
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 11
Line coverage: 100%
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%11100%
.cctor()50%66100%

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{
 47    public static string Value { get; } = Assembly.GetEntryAssembly()?
 28        .GetCustomAttribute<AssemblyInformationalVersionAttribute>()?
 29        .InformationalVersion
 210        .Split('+').Last()[..7] ?? "unknown";
 11}

Methods/Properties

get_Value()
.cctor()