< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Scheduling.JobInfo
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Scheduling/JobInfo.cs
Tag: Kestrun/Kestrun@9d3a582b2d63930269564a7591aa77ef297cadeb
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 20
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

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Name()100%11100%
get_LastRunAt()100%11100%
get_NextRunAt()100%11100%
get_IsSuspended()100%11100%
get_IsCompleted()100%11100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Scheduling/JobInfo.cs

#LineLine coverage
 1namespace Kestrun.Scheduling;
 2
 3/// <summary>
 4/// Represents a scheduled task with its configuration and state.
 5/// </summary>
 6/// <param name="Name">The name of the scheduled task.</param>
 7/// <param name="LastRunAt">The last time the task was run.</param>
 8/// <param name="NextRunAt">The next scheduled run time for the task.</param>
 9/// <param name="IsSuspended">Indicates whether the task is currently suspended.</param>
 10/// <param name="IsCompleted">Indicates whether the scheduling loop has exited (task fully cancelled).</param>
 11/// <remarks>
 12/// This class encapsulates the details of a scheduled task, including its name, last run time,
 13/// next run time, and whether it is currently suspended. It is used internally by the scheduler
 14/// to manage and report on scheduled tasks.
 15/// </remarks>
 7916public sealed record JobInfo(string Name,
 4917                             DateTimeOffset? LastRunAt,
 3118                             DateTimeOffset NextRunAt,
 319                             bool IsSuspended,
 4220                             bool IsCompleted = false);