< Summary - Jellyfin

Information
Class: MediaBrowser.Common.Net.NetworkConfigurationExtensions
Assembly: MediaBrowser.Common
File(s): /srv/git/jellyfin/MediaBrowser.Common/Net/NetworkConfigurationExtensions.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 19
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
GetNetworkConfiguration(...)100%11100%

File(s)

/srv/git/jellyfin/MediaBrowser.Common/Net/NetworkConfigurationExtensions.cs

#LineLine coverage
 1using MediaBrowser.Common.Configuration;
 2
 3namespace MediaBrowser.Common.Net;
 4
 5/// <summary>
 6/// Defines the <see cref="NetworkConfigurationExtensions" />.
 7/// </summary>
 8public static class NetworkConfigurationExtensions
 9{
 10    /// <summary>
 11    /// Retrieves the network configuration.
 12    /// </summary>
 13    /// <param name="config">The <see cref="IConfigurationManager"/>.</param>
 14    /// <returns>The <see cref="NetworkConfiguration"/>.</returns>
 15    public static NetworkConfiguration GetNetworkConfiguration(this IConfigurationManager config)
 16    {
 130817        return config.GetConfiguration<NetworkConfiguration>(NetworkConfigurationStore.StoreKey);
 18    }
 19}