< Summary

Information
Class: Syki.Front.Components.Buttons.ThemeIconButton
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Components/Buttons/ThemeIconButton.razor
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 22
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_IsDark()100%210%
get_IsDarkChanged()100%210%
get_OnClick()100%210%

File(s)

/home/runner/work/syki/syki/Front/Components/Buttons/ThemeIconButton.razor

#LineLine coverage
 1@namespace Syki.Front.Components.Buttons
 2
 03@if (IsDark)
 4{
 5    <MudIconButton Icon="@Icons.Material.Filled.LightMode" Color="Color.Inherit" OnClick="@OnClick" />
 6}
 7else
 8{
 9    <MudIconButton Icon="@Icons.Material.Filled.DarkMode" Color="Color.Inherit" OnClick="@OnClick" />
 10}
 11
 12@code
 13{
 14    [Parameter]
 015    public bool IsDark { get; set; }
 16
 17    [Parameter]
 018    public EventCallback<bool> IsDarkChanged { get; set; }
 19
 20    [Parameter]
 021    public EventCallback<MouseEventArgs> OnClick { get; set; }
 22}