< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Drawing.ImageDimensions
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Drawing/ImageDimensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 46
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 2/13/2026 - 12:11:21 AM Line coverage: 0% (0/7) Branch coverage: 0% (0/2) Total lines: 455/9/2026 - 12:15:41 AM Line coverage: 0% (0/7) Branch coverage: 0% (0/2) Total lines: 46 2/13/2026 - 12:11:21 AM Line coverage: 0% (0/7) Branch coverage: 0% (0/2) Total lines: 455/9/2026 - 12:15:41 AM Line coverage: 0% (0/7) Branch coverage: 0% (0/2) Total lines: 46

Coverage delta

Coverage delta 1 -1

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
Equals(...)0%620%
ToString()100%210%

File(s)

/srv/git/jellyfin/MediaBrowser.Model/Drawing/ImageDimensions.cs

#LineLine coverage
 1#pragma warning disable CS1591
 2#pragma warning disable CA1815
 3
 4using System.Globalization;
 5
 6namespace MediaBrowser.Model.Drawing
 7{
 8    /// <summary>
 9    /// Struct ImageDimensions.
 10    /// </summary>
 11    public readonly struct ImageDimensions
 12    {
 13        public ImageDimensions(int width, int height)
 14        {
 15            Width = width;
 16            Height = height;
 017        }
 18
 19        /// <summary>
 20        /// Gets the height.
 21        /// </summary>
 22        /// <value>The height.</value>
 23        public int Height { get; }
 24
 25        /// <summary>
 26        /// Gets the width.
 27        /// </summary>
 28        /// <value>The width.</value>
 29        public int Width { get; }
 30
 31        public bool Equals(ImageDimensions size)
 32        {
 033            return Width.Equals(size.Width) && Height.Equals(size.Height);
 34        }
 35
 36        /// <inheritdoc />
 37        public override string ToString()
 38        {
 039            return string.Format(
 040                CultureInfo.InvariantCulture,
 041                "{0}-{1}",
 042                Width,
 043                Height);
 44        }
 45    }
 46}