< Summary

Information
Class: LifeChart.Domain.Entries.FunctionalityScore
Assembly: LifeChart.Domain
File(s): /home/runner/work/lifechart/lifechart/src/LifeChart.Domain/Entries/FunctionalityScore.cs
Tag: 113_29159449707
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 17
Line coverage: 100%
Branch coverage
100%
Covered branches: 4
Total branches: 4
Branch coverage: 100%
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%
.ctor(...)100%44100%
get_IsCritical()100%11100%
get_Neutral()100%11100%

File(s)

/home/runner/work/lifechart/lifechart/src/LifeChart.Domain/Entries/FunctionalityScore.cs

#LineLine coverage
 1namespace LifeChart.Domain.Entries;
 2
 3public record FunctionalityScore
 4{
 255    public int Value { get; }
 6
 677    public FunctionalityScore(int value)
 8    {
 679        if (value < -5 || value > 5)
 210            throw new ArgumentOutOfRangeException(
 211                nameof(value), "Funktionsfähigkeit muss zwischen -5 und +5 liegen.");
 6512        Value = value;
 6513    }
 14
 2015    public bool IsCritical => Value <= -4;
 2916    public static FunctionalityScore Neutral => new(0);
 17}