< Summary - Jellyfin

Information
Class: MediaBrowser.Providers.Plugins.MusicBrainz.MusicBrainzRecordingId
Assembly: MediaBrowser.Providers
File(s): /srv/git/jellyfin/MediaBrowser.Providers/Plugins/MusicBrainz/MusicBrainzRecordingId.cs
Line coverage
25%
Covered lines: 1
Uncovered lines: 3
Coverable lines: 4
Total lines: 24
Line coverage: 25%
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%
Supports(...)100%210%

File(s)

/srv/git/jellyfin/MediaBrowser.Providers/Plugins/MusicBrainz/MusicBrainzRecordingId.cs

#LineLine coverage
 1using MediaBrowser.Controller.Entities.Audio;
 2using MediaBrowser.Controller.Providers;
 3using MediaBrowser.Model.Entities;
 4using MediaBrowser.Model.Providers;
 5
 6namespace MediaBrowser.Providers.Plugins.MusicBrainz;
 7
 8/// <summary>
 9/// MusicBrainz recording id.
 10/// </summary>
 11public class MusicBrainzRecordingId : IExternalId
 12{
 13    /// <inheritdoc />
 2114    public string ProviderName => "MusicBrainz";
 15
 16    /// <inheritdoc />
 017    public string Key => MetadataProvider.MusicBrainzRecording.ToString();
 18
 19    /// <inheritdoc />
 020    public ExternalIdMediaType? Type => ExternalIdMediaType.Recording;
 21
 22    /// <inheritdoc />
 023    public bool Supports(IHasProviderIds item) => item is Audio;
 24}