< Summary - Jellyfin

Information
Class: MediaBrowser.Controller.Entities.ItemImageInfo
Assembly: MediaBrowser.Controller
File(s): /srv/git/jellyfin/MediaBrowser.Controller/Entities/ItemImageInfo.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 42
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
get_IsLocalFile()100%11100%

File(s)

/srv/git/jellyfin/MediaBrowser.Controller/Entities/ItemImageInfo.cs

#LineLine coverage
 1#pragma warning disable CS1591
 2
 3using System;
 4using System.Text.Json.Serialization;
 5using MediaBrowser.Model.Entities;
 6
 7namespace MediaBrowser.Controller.Entities
 8{
 9    public class ItemImageInfo
 10    {
 11        /// <summary>
 12        /// Gets or sets the path.
 13        /// </summary>
 14        /// <value>The path.</value>
 15        public required string Path { get; set; }
 16
 17        /// <summary>
 18        /// Gets or sets the type.
 19        /// </summary>
 20        /// <value>The type.</value>
 21        public ImageType Type { get; set; }
 22
 23        /// <summary>
 24        /// Gets or sets the date modified.
 25        /// </summary>
 26        /// <value>The date modified.</value>
 27        public DateTime DateModified { get; set; }
 28
 29        public int Width { get; set; }
 30
 31        public int Height { get; set; }
 32
 33        /// <summary>
 34        /// Gets or sets the blurhash.
 35        /// </summary>
 36        /// <value>The blurhash.</value>
 37        public string? BlurHash { get; set; }
 38
 39        [JsonIgnore]
 4440        public bool IsLocalFile => !Path.StartsWith("http", StringComparison.OrdinalIgnoreCase);
 41    }
 42}

Methods/Properties

get_IsLocalFile()