< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Logging.Utils.Console.Cell
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Logging/Utils/Console/Cell.cs
Tag: Kestrun/Kestrun@0d738bf294e6281b936d031e1979d928007495ff
Line coverage
100%
Covered lines: 13
Uncovered lines: 0
Coverable lines: 13
Total lines: 25
Line coverage: 100%
Branch coverage
87%
Covered branches: 7
Total branches: 8
Branch coverage: 87.5%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 08/26/2025 - 14:53:17 Line coverage: 92.3% (12/13) Branch coverage: 62.5% (5/8) Total lines: 25 Tag: Kestrun/Kestrun@78d1e497d8ba989d121b57aa39aa3c6b22de743112/15/2025 - 04:25:23 Line coverage: 100% (13/13) Branch coverage: 87.5% (7/8) Total lines: 25 Tag: Kestrun/Kestrun@e333660af9731cab5ae4c14a12f3bb84a8fabc7d 08/26/2025 - 14:53:17 Line coverage: 92.3% (12/13) Branch coverage: 62.5% (5/8) Total lines: 25 Tag: Kestrun/Kestrun@78d1e497d8ba989d121b57aa39aa3c6b22de743112/15/2025 - 04:25:23 Line coverage: 100% (13/13) Branch coverage: 87.5% (7/8) Total lines: 25 Tag: Kestrun/Kestrun@e333660af9731cab5ae4c14a12f3bb84a8fabc7d

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Index()100%11100%
get_Value()100%11100%
get_MaxWidth()100%11100%
get_Row()100%11100%
get_Column()100%11100%
get_Width()100%11100%
.ctor(...)100%66100%
ToString()50%22100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Logging/Utils/Console/Cell.cs

#LineLine coverage
 1namespace Kestrun.Logging.Utils.Console;
 2
 3internal class Cell
 4{
 5    public const string NULL_PLACEHOLDER = "";
 6
 1417    public int Index { get; }
 8418    public string Value { get; }
 3259    public static int MaxWidth { get; private set; }
 10
 211    public Row Row { get; }
 26412    public Column? Column { get; set; }
 13
 75314    public int Width => Value.Length;
 15
 10916    public Cell(object value, int index, Row row)
 17    {
 10918        Index = index;
 10919        Value = value?.ToString() ?? NULL_PLACEHOLDER;
 10920        MaxWidth = Width > MaxWidth ? Width : MaxWidth;
 10921        Row = row;
 10922    }
 23
 8824    public override string ToString() => Column == null ? Value : Value.PadRight(Column.MaxWidth, ' ');
 25}