< Summary - Jellyfin

Information
Class: Jellyfin.Api.Results.OkResult<T>
Assembly: Jellyfin.Api
File(s): /srv/git/jellyfin/Jellyfin.Api/Results/OkResultOfT.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 21
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/Results/OkResultOfT.cs

#LineLine coverage
 1#pragma warning disable SA1649 // File name should match type name.
 2
 3using Microsoft.AspNetCore.Mvc;
 4
 5namespace Jellyfin.Api.Results;
 6
 7/// <summary>
 8/// Ok result with type specified.
 9/// </summary>
 10/// <typeparam name="T">The type to return.</typeparam>
 11public class OkResult<T> : OkObjectResult
 12{
 13    /// <summary>
 14    /// Initializes a new instance of the <see cref="OkResult{T}"/> class.
 15    /// </summary>
 16    /// <param name="value">The value to return.</param>
 17    public OkResult(T value)
 718        : base(value)
 19    {
 720    }
 21}

Methods/Properties

.ctor(T)