< Summary - Jellyfin

Information
Class: Jellyfin.MediaEncoding.Keyframes.Matroska.Models.Info
Assembly: Jellyfin.MediaEncoding.Keyframes
File(s): /srv/git/jellyfin/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/Info.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 28
Line coverage: 0%
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%210%

File(s)

/srv/git/jellyfin/src/Jellyfin.MediaEncoding.Keyframes/Matroska/Models/Info.cs

#LineLine coverage
 1namespace Jellyfin.MediaEncoding.Keyframes.Matroska.Models;
 2
 3/// <summary>
 4/// The matroska Info segment.
 5/// </summary>
 6internal class Info
 7{
 8    /// <summary>
 9    /// Initializes a new instance of the <see cref="Info"/> class.
 10    /// </summary>
 11    /// <param name="timestampScale">The timestamp scale in nanoseconds.</param>
 12    /// <param name="duration">The duration of the entire file.</param>
 13    public Info(long timestampScale, double? duration)
 014    {
 15        TimestampScale = timestampScale;
 16        Duration = duration;
 017    }
 18
 19    /// <summary>
 20    /// Gets the timestamp scale in nanoseconds.
 21    /// </summary>
 22    public long TimestampScale { get; }
 23
 24    /// <summary>
 25    /// Gets the total duration of the file.
 26    /// </summary>
 27    public double? Duration { get; }
 28}