< 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@9d3a582b2d63930269564a7591aa77ef297cadeb
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

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{
 405    public int Index { get; }
 866    public List<Cell> Cells { get; } = [];
 7
 4008    public int MaxWidth => Cells.Max(c => c.Width);
 9
 010    public Column(int index) => Index = index;
 11
 612    public Column(Cell cell)
 13    {
 614        AddCell(cell);
 615        Index = cell.Index;
 616    }
 17
 18    public void AddCell(Cell cell)
 19    {
 2620        Cells.Add(cell);
 2621        cell.Column = this;
 2622    }
 23}