< Summary

Information
Class: UIBlazor.Models.ContentSegment
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/Models/ContentSegment.cs
Tag: 14_22728831704
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 22
Line coverage: 100%
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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Id()100%11100%
get_Type()100%11100%
get_TagName()100%11100%
get_ToolName()100%11100%
get_ApprovalStatus()100%11100%
get_IsClosed()100%11100%
get_Lines()100%11100%
get_CurrentLine()100%11100%

File(s)

/home/runner/work/InvAit/InvAit/UIBlazor/Models/ContentSegment.cs

#LineLine coverage
 1namespace UIBlazor.Models;
 2
 3public class ContentSegment
 4{
 65    public string Id { get; } = Guid.NewGuid().ToString();
 6
 587    public SegmentType Type { get; internal set; } = SegmentType.Unknown;
 8
 379    public string TagName { get; internal set; } = string.Empty;
 10
 1811    public string ToolName { get; set; } = string.Empty;
 12
 913    public ToolApprovalStatus? ApprovalStatus { get; set; } = ToolApprovalStatus.Approved;
 14
 2915    public bool IsClosed { get; internal set; }
 16
 17    // Список готовых строк для UI-парсеров (DiffView и т.д.)
 1218    public List<string> Lines { get; } = [];
 19
 20    // Буфер для текущей (недописанной) строки
 2721    public StringBuilder CurrentLine { get; } = new();
 22}