< Summary

Information
Class: Pomodoro.Web.Components.TimerControls
Assembly: Pomodoro.Web
File(s): /home/runner/work/Pomodoro/Pomodoro/src/Pomodoro.Web/Components/TimerControls.razor
Line coverage
100%
Covered lines: 16
Uncovered lines: 0
Coverable lines: 16
Total lines: 39
Line coverage: 100%
Branch coverage
100%
Covered branches: 10
Total branches: 10
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
BuildRenderTree(...)100%1010100%

File(s)

/home/runner/work/Pomodoro/Pomodoro/src/Pomodoro.Web/Components/TimerControls.razor

#LineLine coverage
 1@inherits TimerControlsBase
 2@using Pomodoro.Web.Models
 3
 4<div class="timer-controls">
 3545    @if (IsRunning)
 96    {
 7        <div class="btn-row">
 8            <button class="btn-icon-large btn-pause" @onclick="OnPause" title="Pause" aria-label="Pause timer">
 99                @Constants.UI.PauseIcon
 10            </button>
 11            <button class="btn-icon-large btn-reset" @onclick="OnReset" title="Reset" aria-label="Reset timer">
 912                @Constants.UI.ResetIcon
 13            </button>
 14        </div>
 915    }
 34516    else if (IsStarted)
 917    {
 18        <div class="btn-row">
 19            <button class="btn-icon-large btn-resume @GetSessionClass()" @onclick="OnResume" title="Resume" aria-label="
 920                @Constants.UI.PlayIcon
 21            </button>
 22            <button class="btn-icon-large btn-reset" @onclick="OnReset" title="Reset" aria-label="Reset timer">
 923                @Constants.UI.ResetIcon
 24            </button>
 25        </div>
 926    }
 27    else
 33628    {
 29        <div class="btn-row">
 30            <button class="btn-icon-large btn-start @GetSessionClass()" @onclick="OnStart" disabled="@IsStartDisabled" t
 33631                @Constants.UI.PlayIcon
 32            </button>
 33        </div>
 33634        @if (IsStartDisabled)
 30635        {
 36            <p class="task-hint">Select a task to start</p>
 30637        }
 33638    }
 39</div>