< Summary - Jellyfin

Information
Class: Jellyfin.LiveTv.Configuration.LiveTvConfigurationFactory
Assembly: Jellyfin.LiveTv
File(s): /srv/git/jellyfin/src/Jellyfin.LiveTv/Configuration/LiveTvConfigurationFactory.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 24
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
GetConfigurations()100%11100%

File(s)

/srv/git/jellyfin/src/Jellyfin.LiveTv/Configuration/LiveTvConfigurationFactory.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using MediaBrowser.Common.Configuration;
 3using MediaBrowser.Model.LiveTv;
 4
 5namespace Jellyfin.LiveTv.Configuration;
 6
 7/// <summary>
 8/// <see cref="IConfigurationFactory" /> implementation for <see cref="LiveTvOptions" />.
 9/// </summary>
 10public class LiveTvConfigurationFactory : IConfigurationFactory
 11{
 12    /// <inheritdoc />
 13    public IEnumerable<ConfigurationStore> GetConfigurations()
 14    {
 2215        return new[]
 2216        {
 2217            new ConfigurationStore
 2218            {
 2219                ConfigurationType = typeof(LiveTvOptions),
 2220                Key = "livetv"
 2221            }
 2222        };
 23    }
 24}

Methods/Properties

GetConfigurations()