< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Logging.Utils.Console.Column
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Logging/Utils/Console/Column.cs
Tag: Kestrun/Kestrun@0d738bf294e6281b936d031e1979d928007495ff
Line coverage
90%
Covered lines: 10
Uncovered lines: 1
Coverable lines: 11
Total lines: 23
Line coverage: 90.9%
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

Coverage history

Coverage history 0 25 50 75 100 08/26/2025 - 14:53:17 Line coverage: 90.9% (10/11) Total lines: 23 Tag: Kestrun/Kestrun@78d1e497d8ba989d121b57aa39aa3c6b22de7431

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Index()100%11100%
get_Cells()100%11100%
get_MaxWidth()100%11100%
.ctor(...)100%210%
.ctor(...)100%11100%
AddCell(...)100%11100%

File(s)

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

#LineLine coverage
 1namespace Kestrun.Logging.Utils.Console;
 2
 3internal class Column
 4{
 975    public int Index { get; }
 3286    public List<Cell> Cells { get; } = [];
 7
 8418    public int MaxWidth => Cells.Max(c => c.Width);
 9
 010    public Column(int index) => Index = index;
 11
 4112    public Column(Cell cell)
 13    {
 4114        AddCell(cell);
 4115        Index = cell.Index;
 4116    }
 17
 18    public void AddCell(Cell cell)
 19    {
 8820        Cells.Add(cell);
 8821        cell.Column = this;
 8822    }
 23}