< Summary - Jellyfin

Information
Class: MediaBrowser.Controller.Library.LibraryManagerExtensions
Assembly: MediaBrowser.Controller
File(s): /srv/git/jellyfin/MediaBrowser.Controller/Library/LibraryManagerExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 15
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
GetItemById(...)100%210%

File(s)

/srv/git/jellyfin/MediaBrowser.Controller/Library/LibraryManagerExtensions.cs

#LineLine coverage
 1#pragma warning disable CS1591
 2
 3using System;
 4using MediaBrowser.Controller.Entities;
 5
 6namespace MediaBrowser.Controller.Library
 7{
 8    public static class LibraryManagerExtensions
 9    {
 10        public static BaseItem? GetItemById(this ILibraryManager manager, string id)
 11        {
 012            return manager.GetItemById(new Guid(id));
 13        }
 14    }
 15}