< Summary

Information
Class: UIBlazor.Components.ToolViews.ToolCreateNewFile
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/Components/ToolViews/ToolCreateNewFile.razor
Tag: 71_26091983037
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 21
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
BuildRenderTree(...)0%620%
get_Lines()100%210%
get_FilePath()100%210%
OnParametersSet()100%210%

File(s)

/home/runner/work/InvAit/InvAit/UIBlazor/Components/ToolViews/ToolCreateNewFile.razor

#LineLine coverage
 1<div class="diff-view">
 02    @if (!string.IsNullOrEmpty(FilePath))
 3    {
 04        <div @key="@FilePath" class="tool-file-header">@FilePath</div>
 5    }
 6
 7    <div class="diff-block">
 08        <pre>@string.Join("\n", Lines[1..])</pre>
 9    </div>
 10</div>
 11
 12@code {
 013    [Parameter] public List<string> Lines { get; set; } = [];
 14
 015    private string? FilePath { get; set; }
 16
 17    protected override void OnParametersSet()
 18    {
 019        FilePath = Lines[0];
 020    }
 21}