< Summary - Jellyfin

Information
Class: Jellyfin.Api.Attributes.ProducesImageFileAttribute
Assembly: Jellyfin.Api
File(s): /srv/git/jellyfin/Jellyfin.Api/Attributes/ProducesImageFileAttribute.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 17
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
.ctor()100%11100%

File(s)

/srv/git/jellyfin/Jellyfin.Api/Attributes/ProducesImageFileAttribute.cs

#LineLine coverage
 1namespace Jellyfin.Api.Attributes;
 2
 3/// <summary>
 4/// Produces file attribute of "image/*".
 5/// </summary>
 6public sealed class ProducesImageFileAttribute : ProducesFileAttribute
 7{
 8    private const string ContentType = "image/*";
 9
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="ProducesImageFileAttribute"/> class.
 12    /// </summary>
 13    public ProducesImageFileAttribute()
 85114        : base(ContentType)
 15    {
 85116    }
 17}

Methods/Properties

.ctor()