< Summary - Jellyfin

Information
Class: MediaBrowser.Controller.Entities.BasePluginFolder
Assembly: MediaBrowser.Controller
File(s): /srv/git/jellyfin/MediaBrowser.Controller/Entities/BasePluginFolder.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 33
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
get_CollectionType()100%210%
get_SupportsInheritedParentImages()100%210%
get_SupportsPeople()100%210%
CanDelete()100%210%
IsSaveLocalMetadataEnabled()100%210%

File(s)

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

#LineLine coverage
 1#pragma warning disable CS1591
 2
 3using System.Text.Json.Serialization;
 4using Jellyfin.Data.Enums;
 5
 6namespace MediaBrowser.Controller.Entities
 7{
 8    /// <summary>
 9    /// Plugins derive from and export this class to create a folder that will appear in the root along
 10    /// with all the other actual physical folders in the system.
 11    /// </summary>
 12    public abstract class BasePluginFolder : Folder, ICollectionFolder
 13    {
 14        [JsonIgnore]
 015        public virtual CollectionType? CollectionType => null;
 16
 17        [JsonIgnore]
 018        public override bool SupportsInheritedParentImages => false;
 19
 20        [JsonIgnore]
 021        public override bool SupportsPeople => false;
 22
 23        public override bool CanDelete()
 24        {
 025            return false;
 26        }
 27
 28        public override bool IsSaveLocalMetadataEnabled()
 29        {
 030            return true;
 31        }
 32    }
 33}