< 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: 31
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
.ctor(...)100%11100%

File(s)

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

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