< Summary - Jellyfin

Information
Class: Jellyfin.LiveTv.TunerHosts.HdHomerun.HdHomerunChannelCommands
Assembly: Jellyfin.LiveTv
File(s): /srv/git/jellyfin/src/Jellyfin.LiveTv/TunerHosts/HdHomerun/HdHomerunChannelCommands.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 35
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 6
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 1/23/2026 - 12:11:06 AM Line coverage: 0% (0/3) Total lines: 354/19/2026 - 12:14:27 AM Line coverage: 0% (0/9) Branch coverage: 0% (0/6) Total lines: 35 4/19/2026 - 12:14:27 AM Line coverage: 0% (0/9) Branch coverage: 0% (0/6) Total lines: 35

Coverage delta

Coverage delta 1 -1

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
GetCommands()0%4260%

File(s)

/srv/git/jellyfin/src/Jellyfin.LiveTv/TunerHosts/HdHomerun/HdHomerunChannelCommands.cs

#LineLine coverage
 1#pragma warning disable CS1591
 2
 3using System;
 4using System.Collections.Generic;
 5
 6namespace Jellyfin.LiveTv.TunerHosts.HdHomerun
 7{
 8    public class HdHomerunChannelCommands : IHdHomerunChannelCommands
 9    {
 10        private string? _channel;
 11        private string? _profile;
 12
 13        public HdHomerunChannelCommands(string? channel, string? profile)
 14        {
 015            _channel = channel;
 016            _profile = profile;
 017        }
 18
 19        public IEnumerable<(string CommandName, string CommandValue)> GetCommands()
 20        {
 021            if (!string.IsNullOrEmpty(_channel))
 22            {
 023                if (!string.IsNullOrEmpty(_profile)
 024                    && !string.Equals(_profile, "native", StringComparison.OrdinalIgnoreCase))
 25                {
 026                    yield return ("vchannel", $"{_channel} transcode={_profile}");
 27                }
 28                else
 29                {
 030                    yield return ("vchannel", _channel);
 31                }
 32            }
 033        }
 34    }
 35}