< 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@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
100%
Covered lines: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 55
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@aca34ea8d284564e2f9f6616dc937668dce926ba

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%

File(s)

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

#LineLine coverage
 1
 2using System.Text.Json.Nodes;
 3using Microsoft.OpenApi;
 4
 5namespace Kestrun.Languages;
 6
 7/// <summary>
 8/// Base class for parameter information to be injected into a script.
 9/// </summary>
 3310public abstract class ParameterForInjectionInfoBase(string name, Type parameterType)
 11{
 12    /// <summary>
 13    /// The name of the parameter.
 14    /// </summary>
 8515    public string Name { get; init; } = name;
 16
 17    /// <summary>
 18    /// The .NET type of the parameter.
 19    /// </summary>
 6320    public Type ParameterType { get; init; } = parameterType;
 21
 22    /// <summary>
 23    /// The JSON schema type of the parameter.
 24    /// </summary>
 8225    public JsonSchemaType? Type { get; init; }
 26
 27    /// <summary>
 28    /// The default value of the parameter.
 29    /// </summary>
 5030    public JsonNode? DefaultValue { get; init; }
 31
 32    /// <summary>
 33    /// The location of the parameter.
 34    /// </summary>
 9535    public ParameterLocation? In { get; init; }
 36
 37    /// <summary>
 38    /// Indicates whether the parameter is from the request body.
 39    /// </summary>
 2340    public bool IsRequestBody => In is null;
 41    /// <summary>
 42    /// Content types associated with the parameter.
 43    /// </summary>
 5344    public List<string> ContentTypes { get; init; } = [];
 45
 46    /// <summary>
 47    /// The style of the parameter.
 48    /// </summary>
 749    public ParameterStyle? Style { get; init; }
 50
 51    /// <summary>
 52    /// Indicates whether the parameter should be exploded.
 53    /// </summary>
 754    public bool Explode { get; init; }
 55}