< Summary

Information
Class: Pomodoro.Web.Models.WeeklyStats
Assembly: Pomodoro.Web
File(s): /home/runner/work/Pomodoro/Pomodoro/src/Pomodoro.Web/Models/WeeklyStats.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 42
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_TotalFocusMinutes()100%11100%
get_TotalPomodoroCount()100%11100%
get_UniqueTasksWorkedOn()100%11100%
get_DailyAverageMinutes()100%11100%
get_MostProductiveDay()100%11100%
get_PreviousWeekFocusMinutes()100%11100%
get_WeekOverWeekChange()100%11100%

File(s)

/home/runner/work/Pomodoro/Pomodoro/src/Pomodoro.Web/Models/WeeklyStats.cs

#LineLine coverage
 1namespace Pomodoro.Web.Models;
 2
 3/// <summary>
 4/// Weekly statistics summary for productivity tracking
 5/// </summary>
 6public record WeeklyStats
 7{
 8    /// <summary>
 9    /// Total focus minutes accumulated during the week
 10    /// </summary>
 10211    public int TotalFocusMinutes { get; init; }
 12
 13    /// <summary>
 14    /// Total number of pomodoro sessions completed during the week
 15    /// </summary>
 10016    public int TotalPomodoroCount { get; init; }
 17
 18    /// <summary>
 19    /// Number of unique tasks worked on during the week
 20    /// </summary>
 6521    public int UniqueTasksWorkedOn { get; init; }
 22
 23    /// <summary>
 24    /// Average focus minutes per day during the week
 25    /// </summary>
 7526    public double DailyAverageMinutes { get; init; }
 27
 28    /// <summary>
 29    /// The day of the week with the most focus time
 30    /// </summary>
 5031    public DayOfWeek MostProductiveDay { get; init; }
 32
 33    /// <summary>
 34    /// Total focus minutes from the previous week
 35    /// </summary>
 4336    public int PreviousWeekFocusMinutes { get; init; }
 37
 38    /// <summary>
 39    /// Percentage change compared to previous week (positive = increase, negative = decrease)
 40    /// </summary>
 9641    public double WeekOverWeekChange { get; init; }
 42}