< Summary

Information
Class: UIBlazor.Models.ContentSegment
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/Models/ContentSegment.cs
Tag: 71_26091983037
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 27
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_ToolParams()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{
 155    public string Id { get; } = Guid.NewGuid().ToString();
 6
 2497    public SegmentType Type { get; internal set; } = SegmentType.Unknown;
 8
 879    public string TagName { get; internal set; } = string.Empty;
 10
 7011    public string ToolName { get; set; } = string.Empty;
 12
 13    /// <summary>
 14    /// Распарсеные тулзы с параметрыми
 15    /// </summary>
 4216    public Dictionary<string, object> ToolParams { get; set; } = [];
 17
 2418    public ToolApprovalStatus? ApprovalStatus { get; set; } = ToolApprovalStatus.Approved;
 19
 19820    public bool IsClosed { get; internal set; }
 21
 22    // Список готовых строк для UI-парсеров (DiffView и т.д.)
 7223    public List<string> Lines { get; } = [];
 24
 25    // Буфер для текущей (недописанной) строки
 16926    public StringBuilder CurrentLine { get; } = new();
 27}