< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Languages.ParameterForInjectionInfoBase
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Languages/ParameterForInjectionInfoBase.cs
Tag: Kestrun/Kestrun@eeafbe813231ed23417e7b339e170e307b2c86f9
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 61
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 01/02/2026 - 00:16:25 Line coverage: 85.7% (6/7) Total lines: 41 Tag: Kestrun/Kestrun@8405dc23b786b9d436fba0d65fb80baa4171e1d001/08/2026 - 08:19:25 Line coverage: 100% (7/7) Total lines: 41 Tag: Kestrun/Kestrun@6ab94ca7560634c2ac58b36c2b98e2a9b1bf305d01/17/2026 - 04:33:35 Line coverage: 100% (10/10) Total lines: 55 Tag: Kestrun/Kestrun@aca34ea8d284564e2f9f6616dc937668dce926ba02/05/2026 - 00:28:18 Line coverage: 100% (11/11) Total lines: 61 Tag: Kestrun/Kestrun@d9261bd752e45afa789d10bc0c82b7d5724d9589

Coverage delta

Coverage delta 15 -15

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_Name()100%11100%
get_ParameterType()100%11100%
get_Type()100%11100%
get_DefaultValue()100%11100%
get_In()100%11100%
get_IsRequestBody()100%11100%
get_ContentTypes()100%11100%
get_Style()100%11100%
get_Explode()100%11100%
get_FormOptions()100%11100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Languages/ParameterForInjectionInfoBase.cs

#LineLine coverage
 1
 2using System.Text.Json.Nodes;
 3using Kestrun.Forms;
 4using Microsoft.OpenApi;
 5
 6namespace Kestrun.Languages;
 7
 8/// <summary>
 9/// Base class for parameter information to be injected into a script.
 10/// </summary>
 3611public abstract class ParameterForInjectionInfoBase(string name, Type parameterType)
 12{
 13    /// <summary>
 14    /// The name of the parameter.
 15    /// </summary>
 8816    public string Name { get; init; } = name;
 17
 18    /// <summary>
 19    /// The .NET type of the parameter.
 20    /// </summary>
 8021    public Type ParameterType { get; init; } = parameterType;
 22
 23    /// <summary>
 24    /// The JSON schema type of the parameter.
 25    /// </summary>
 8226    public JsonSchemaType? Type { get; init; }
 27
 28    /// <summary>
 29    /// The default value of the parameter.
 30    /// </summary>
 5031    public JsonNode? DefaultValue { get; init; }
 32
 33    /// <summary>
 34    /// The location of the parameter.
 35    /// </summary>
 9836    public ParameterLocation? In { get; init; }
 37
 38    /// <summary>
 39    /// Indicates whether the parameter is from the request body.
 40    /// </summary>
 2541    public bool IsRequestBody => In is null;
 42    /// <summary>
 43    /// Content types associated with the parameter.
 44    /// </summary>
 5645    public List<string> ContentTypes { get; init; } = [];
 46
 47    /// <summary>
 48    /// The style of the parameter.
 49    /// </summary>
 750    public ParameterStyle? Style { get; init; }
 51
 52    /// <summary>
 53    /// Indicates whether the parameter should be exploded.
 54    /// </summary>
 755    public bool Explode { get; init; }
 56
 57    /// <summary>
 58    /// Form options for handling form data.
 59    /// </summary>
 2360    public KrFormOptions? FormOptions { get; init; }
 61}