< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Authentication.AuthenticationCodeSettings
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Authentication/AuthenticationCodeSettings.cs
Tag: Kestrun/Kestrun@2d87023b37eb91155071c91dd3d6a2eeb3004705
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 45
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 08/26/2025 - 01:25:22 Line coverage: 100% (6/6) Total lines: 45 Tag: Kestrun/Kestrun@07f821172e5dc3657f1be7e6818f18d6721cf38a

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Language()100%11100%
get_Code()100%11100%
get_ExtraImports()100%11100%
get_ExtraRefs()100%11100%
get_CSharpVersion()100%11100%
get_VisualBasicVersion()100%11100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Authentication/AuthenticationCodeSettings.cs

#LineLine coverage
 1using System.Reflection;
 2using Kestrun.Scripting;
 3
 4namespace Kestrun.Authentication;
 5
 6/// <summary>
 7/// Represents the settings for authentication code, including language, code, extra imports, and references.
 8/// </summary>
 9public record AuthenticationCodeSettings
 10{
 11    /// <summary>
 12    /// Gets the scripting language used for authentication code.
 13    /// </summary>
 5014    public ScriptLanguage Language { get; init; } = ScriptLanguage.Native;
 15    /// <summary>
 16    /// Gets the authentication code as a string.
 17    /// </summary>
 8118    public string? Code { get; init; }
 19    /// <summary>
 20    /// Gets the extra import namespaces required for authentication code.
 21    /// </summary>
 2222    public string[]? ExtraImports { get; init; }
 23    /// <summary>
 24    /// Gets the extra assembly references required for authentication code.
 25    /// </summary>
 2126    public Assembly[]? ExtraRefs { get; init; }
 27
 28    /// <summary>
 29    /// Gets the C# language version used for authentication code.
 30    /// If the language is CSharp.
 31    /// </summary>
 32    /// <remarks>
 33    /// This property is used to specify the C# language version for the authentication code.
 34    /// </remarks>
 22035    public Microsoft.CodeAnalysis.CSharp.LanguageVersion CSharpVersion { get; init; } = Microsoft.CodeAnalysis.CSharp.La
 36
 37    /// <summary>
 38    /// Gets the Visual Basic language version used for authentication code.
 39    /// If the language is VBNet.
 40    /// </summary>
 41    /// <remarks>
 42    /// This property is used to specify the Visual Basic language version for the authentication code.
 43    /// </remarks>
 22144    public Microsoft.CodeAnalysis.VisualBasic.LanguageVersion VisualBasicVersion { get; init; } = Microsoft.CodeAnalysis
 45}