< Summary - Jellyfin

Information
Class: MediaBrowser.Providers.Plugins.Tmdb.People.TmdbPersonExternalId
Assembly: MediaBrowser.Providers
File(s): /srv/git/jellyfin/MediaBrowser.Providers/Plugins/Tmdb/People/TmdbPersonExternalId.cs
Line coverage
40%
Covered lines: 2
Uncovered lines: 3
Coverable lines: 5
Total lines: 31
Line coverage: 40%
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_ProviderName()100%11100%
get_Key()100%210%
get_Type()100%210%
get_UrlFormatString()100%210%
Supports(...)100%11100%

File(s)

/srv/git/jellyfin/MediaBrowser.Providers/Plugins/Tmdb/People/TmdbPersonExternalId.cs

#LineLine coverage
 1using MediaBrowser.Controller.Entities;
 2using MediaBrowser.Controller.Providers;
 3using MediaBrowser.Model.Entities;
 4using MediaBrowser.Model.Providers;
 5
 6namespace MediaBrowser.Providers.Plugins.Tmdb.People
 7{
 8    /// <summary>
 9    /// External id for a TMDb person.
 10    /// </summary>
 11    public class TmdbPersonExternalId : IExternalId
 12    {
 13        /// <inheritdoc />
 2214        public string ProviderName => TmdbUtils.ProviderName;
 15
 16        /// <inheritdoc />
 017        public string Key => MetadataProvider.Tmdb.ToString();
 18
 19        /// <inheritdoc />
 020        public ExternalIdMediaType? Type => ExternalIdMediaType.Person;
 21
 22        /// <inheritdoc />
 023        public string UrlFormatString => TmdbUtils.BaseTmdbUrl + "person/{0}";
 24
 25        /// <inheritdoc />
 26        public bool Supports(IHasProviderIds item)
 27        {
 1128            return item is Person;
 29        }
 30    }
 31}