< Summary - Jellyfin

Information
Class: Emby.Naming.Video.CleanDateTimeResult
Assembly: Emby.Naming
File(s): /srv/git/jellyfin/Emby.Naming/Video/CleanDateTimeResult.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 33
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 2/15/2026 - 12:13:43 AM Line coverage: 100% (1/1) Total lines: 315/9/2026 - 12:15:41 AM Line coverage: 100% (1/1) Total lines: 33

Coverage delta

Coverage delta 1 -1

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/srv/git/jellyfin/Emby.Naming/Video/CleanDateTimeResult.cs

#LineLine coverage
 1#pragma warning disable CA1815
 2
 3namespace Emby.Naming.Video
 4{
 5    /// <summary>
 6    /// Holder structure for name and year.
 7    /// </summary>
 8    public readonly struct CleanDateTimeResult
 9    {
 10        /// <summary>
 11        /// Initializes a new instance of the <see cref="CleanDateTimeResult"/> struct.
 12        /// </summary>
 13        /// <param name="name">Name of video.</param>
 14        /// <param name="year">Year of release.</param>
 15        public CleanDateTimeResult(string name, int? year = null)
 16        {
 17            Name = name;
 18            Year = year;
 52819        }
 20
 21        /// <summary>
 22        /// Gets the name.
 23        /// </summary>
 24        /// <value>The name.</value>
 25        public string Name { get; }
 26
 27        /// <summary>
 28        /// Gets the year.
 29        /// </summary>
 30        /// <value>The year.</value>
 31        public int? Year { get; }
 32    }
 33}