< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Lyrics.LyricLine
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Lyrics/LyricLine.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 37
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

0255075100

Metrics

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

File(s)

/srv/git/jellyfin/MediaBrowser.Model/Lyrics/LyricLine.cs

#LineLine coverage
 1using System.Collections.Generic;
 2
 3namespace MediaBrowser.Model.Lyrics;
 4
 5/// <summary>
 6/// Lyric model.
 7/// </summary>
 8public class LyricLine
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="LyricLine"/> class.
 12    /// </summary>
 13    /// <param name="text">The lyric text.</param>
 14    /// <param name="start">The lyric start time in ticks.</param>
 15    /// <param name="cues">The time-aligned cues for the song's lyrics.</param>
 16    public LyricLine(string text, long? start = null, IReadOnlyList<LyricLineCue>? cues = null)
 17    {
 18        Text = text;
 19        Start = start;
 20        Cues = cues;
 3121    }
 22
 23    /// <summary>
 24    /// Gets the text of this lyric line.
 25    /// </summary>
 26    public string Text { get; }
 27
 28    /// <summary>
 29    /// Gets the start time in ticks.
 30    /// </summary>
 31    public long? Start { get; }
 32
 33    /// <summary>
 34    /// Gets the time-aligned cues for the song's lyrics.
 35    /// </summary>
 36    public IReadOnlyList<LyricLineCue>? Cues { get; }
 37}