< Summary

Information
Class: Pomodoro.Web.Services.HistoryPagePresenterService
Assembly: Pomodoro.Web
File(s): /home/runner/work/Pomodoro/Pomodoro/src/Pomodoro.Web/Services/HistoryPagePresenterService.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
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
.ctor(...)100%11100%
FormatFocusTime(...)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
 3179    public HistoryPagePresenterService(ILogger<HistoryPagePresenterService> logger)
 31710    {
 31711        _logger = logger;
 31712    }
 13
 14    public virtual string FormatFocusTime(int minutes)
 9215    {
 9216        return minutes.ToString();
 9217    }
 18}
 19
 20public class HistoryPagePaginationState
 21{
 22    public int CurrentSkip { get; set; }
 23    public bool HasMoreActivities { get; set; }
 24    public bool ObserverInitialized { get; set; }
 25}