< Summary

Information
Class: Anichron.Core.Domain.CaptureSources
Assembly: Anichron.Core
File(s): /home/runner/work/anichron/anichron/src/Anichron.Core/Domain/CaptureSource.cs
Tag: 19_45211875487
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 19
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_Timed()100%11100%

File(s)

/home/runner/work/anichron/anichron/src/Anichron.Core/Domain/CaptureSource.cs

#LineLine coverage
 1namespace Anichron.Core.Domain;
 2
 3public enum CaptureSource
 4{
 5    /// <summary>A clock time the file records, with or without an offset.</summary>
 6    Recorded = 1,
 7
 8    /// <summary>A date the file records without a time, stored at 00:00.</summary>
 9    RecordedDateOnly = 2,
 10
 11    /// <summary>A moment the file records only in UTC, read in the zone where it was taken, else in the library's zone.
 12    RecordedInUtc = 3,
 13}
 14
 15public static class CaptureSources
 16{
 17    /// <summary>The sources whose capture date carries a time of day.</summary>
 18018    public static IReadOnlyCollection<CaptureSource?> Timed => [CaptureSource.Recorded, CaptureSource.RecordedInUtc];
 19}

Methods/Properties

get_Timed()