< Summary

Information
Class: Syki.Front.Components.Custom.SykiPageHeader
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Components/Custom/SykiPageHeader.razor
Tag: 22_11348620282
Line coverage
88%
Covered lines: 8
Uncovered lines: 1
Coverable lines: 9
Total lines: 57
Line coverage: 88.8%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Class()100%11100%
get_Icon()100%11100%
get_Title()100%11100%
get_ButtonText()100%11100%
get_ButtonIcon()100%11100%
get_ButtonDisabled()100%11100%
get_ButtonDisabledChanged()100%210%
get_OnClick()100%11100%

File(s)

/home/runner/work/syki/syki/Front/Components/Custom/SykiPageHeader.razor

#LineLine coverage
 1@namespace Syki.Front.Components.Custom
 2
 3<MudCard Class="@Class">
 4    <MudCardContent>
 5        <MudGrid>
 6            <MudItem xs="12" sm="8" md="8" lg="8">
 7                <MudStack Row="true" AlignItems="AlignItems.Center">
 8                    <MudIcon Icon="@Icon" Class="mb-1" Size="Size.Large"/>
 9                    <MudText Typo="Typo.h5" Style="font-weight: bold">@Title</MudText>
 10                </MudStack>
 11            </MudItem>
 112            @if (OnClick.HasDelegate)
 13            {
 14                <MudItem xs="12" sm="4" md="4" lg="4" Class="d-flex justify-end">
 15                    <MudButton
 16                        Disabled="@ButtonDisabled"
 17                        StartIcon="@ButtonIcon"
 18                        IconSize="Size.Large"
 19                        Variant="Variant.Filled"
 20                        Size="Size.Medium"
 21                        Color="Color.Primary"
 22                        @onclick="@OnClick"
 23                        Class="mr-2"
 24                    >
 25                        @ButtonText
 26                    </MudButton>
 27                </MudItem>
 28            }
 29        </MudGrid>
 30    </MudCardContent>
 31</MudCard>
 32
 33@code
 34{
 35    [Parameter]
 136    public string Class { get; set; }
 37
 38    [Parameter]
 239    public string Icon { get; set; }
 40
 41    [Parameter]
 242    public string Title { get; set; }
 43
 44    [Parameter]
 245    public string ButtonText { get; set; }
 46
 47    [Parameter]
 248    public string ButtonIcon { get; set; } = Icons.Material.Outlined.Add;
 49
 50    [Parameter]
 151    public bool ButtonDisabled { get; set; }
 52    [Parameter]
 053    public EventCallback<bool> ButtonDisabledChanged { get; set; }
 54
 55    [Parameter]
 356    public EventCallback<MouseEventArgs> OnClick { get; set; }
 57}