< Summary

Information
Class: Pomodoro.Web.Services.HistoryPagePaginationState
Assembly: Pomodoro.Web
File(s): /home/runner/work/Pomodoro/Pomodoro/src/Pomodoro.Web/Services/HistoryPagePresenterService.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 25
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_CurrentSkip()100%11100%
get_HasMoreActivities()100%11100%
get_ObserverInitialized()100%11100%

File(s)

/home/runner/work/Pomodoro/Pomodoro/src/Pomodoro.Web/Services/HistoryPagePresenterService.cs

#LineLine coverage
 1using Microsoft.Extensions.Logging;
 2
 3namespace Pomodoro.Web.Services;
 4
 5public class HistoryPagePresenterService
 6{
 7    private readonly ILogger<HistoryPagePresenterService> _logger;
 8
 9    public HistoryPagePresenterService(ILogger<HistoryPagePresenterService> logger)
 10    {
 11        _logger = logger;
 12    }
 13
 14    public virtual string FormatFocusTime(int minutes)
 15    {
 16        return minutes.ToString();
 17    }
 18}
 19
 20public class HistoryPagePaginationState
 21{
 622    public int CurrentSkip { get; set; }
 623    public bool HasMoreActivities { get; set; }
 624    public bool ObserverInitialized { get; set; }
 25}