< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Logging.Utils.Console.Row
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Logging/Utils/Console/Row.cs
Tag: Kestrun/Kestrun@9d3a582b2d63930269564a7591aa77ef297cadeb
Line coverage
85%
Covered lines: 12
Uncovered lines: 2
Coverable lines: 14
Total lines: 27
Line coverage: 85.7%
Branch coverage
50%
Covered branches: 3
Total branches: 6
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_IsHeader()100%210%
get_Index()100%11100%
get_Cells()100%11100%
get_DisableTopGrid()100%11100%
.ctor(...)50%44100%
.ctor(...)50%2287.5%

File(s)

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

#LineLine coverage
 1namespace Kestrun.Logging.Utils.Console;
 2
 3internal class Row
 4{
 05    public bool IsHeader { get; }
 506    public int Index { get; }
 267    public List<Cell> Cells { get; }
 128    public bool DisableTopGrid { get; set; }
 9
 10    public Row(int index, bool isHeader = false, params object[] values)
 3911        : this(index, isHeader, [.. (values ?? []).Select(v => v?.ToString() ?? Cell.NULL_PLACEHOLDER)])
 12    {
 1313    }
 14
 1315    public Row(int index, bool isHeader = false, params string[] values)
 16    {
 1317        if (values == null)
 18        {
 019            throw new ArgumentException("You must provide cells when creating row!", nameof(values));
 20        }
 21
 1322        var cellIndex = 0;
 3923        Cells = [.. values.Select(v => new Cell(v, cellIndex++, this))];
 1324        Index = index;
 1325        IsHeader = isHeader;
 1326    }
 27}