< Summary - Jellyfin

Information
Class: Emby.Naming.Video.VideoInfo
Assembly: Emby.Naming
File(s): /srv/git/jellyfin/Emby.Naming/Video/VideoInfo.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 53
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/VideoInfo.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using MediaBrowser.Model.Entities;
 4
 5namespace Emby.Naming.Video
 6{
 7    /// <summary>
 8    /// Represents a complete video, including all parts and subtitles.
 9    /// </summary>
 10    public class VideoInfo
 11    {
 12        /// <summary>
 13        /// Initializes a new instance of the <see cref="VideoInfo" /> class.
 14        /// </summary>
 15        /// <param name="name">The name.</param>
 16        public VideoInfo(string? name)
 17        {
 15118            Name = name;
 19
 15120            Files = Array.Empty<VideoFileInfo>();
 15121            AlternateVersions = Array.Empty<VideoFileInfo>();
 15122        }
 23
 24        /// <summary>
 25        /// Gets or sets the name.
 26        /// </summary>
 27        /// <value>The name.</value>
 28        public string? Name { get; set; }
 29
 30        /// <summary>
 31        /// Gets or sets the year.
 32        /// </summary>
 33        /// <value>The year.</value>
 34        public int? Year { get; set; }
 35
 36        /// <summary>
 37        /// Gets or sets the files.
 38        /// </summary>
 39        /// <value>The files.</value>
 40        public IReadOnlyList<VideoFileInfo> Files { get; set; }
 41
 42        /// <summary>
 43        /// Gets or sets the alternate versions.
 44        /// </summary>
 45        /// <value>The alternate versions.</value>
 46        public IReadOnlyList<VideoFileInfo> AlternateVersions { get; set; }
 47
 48        /// <summary>
 49        /// Gets or sets the extra type.
 50        /// </summary>
 51        public ExtraType? ExtraType { get; set; }
 52    }
 53}

Methods/Properties

.ctor(System.String)