< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Localization.KestrunLocalizationOptions
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Localization/KestrunLocalizationOptions.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 52
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/24/2026 - 19:35:59 Line coverage: 100% (9/9) Total lines: 52 Tag: Kestrun/Kestrun@f59dcba478ea75f69584d696e5f1fb1cfa40aa51

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_DefaultCulture()100%11100%
get_ResourcesBasePath()100%11100%
get_FileName()100%11100%
get_QueryKey()100%11100%
get_CookieName()100%11100%
get_EnableAcceptLanguage()100%11100%
get_EnableQuery()100%11100%
get_EnableCookie()100%11100%
get_SetDefaultThreadCulture()100%11100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Localization/KestrunLocalizationOptions.cs

#LineLine coverage
 1namespace Kestrun.Localization;
 2
 3/// <summary>
 4/// Options for configuring PowerShell-style localization using string table files.
 5/// </summary>
 6public sealed class KestrunLocalizationOptions
 7{
 8    /// <summary>
 9    /// Gets or sets the default culture to use when no match is found. Default is "en-US".
 10    /// </summary>
 4811    public string DefaultCulture { get; set; } = "en-US";
 12
 13    /// <summary>
 14    /// Gets or sets the base path for localization resources. Default is "i18n".
 15    /// </summary>
 6416    public string ResourcesBasePath { get; set; } = "i18n";
 17
 18    /// <summary>
 19    /// Gets or sets the localization file name. Default is "Messages.psd1".
 20    /// </summary>
 5821    public string FileName { get; set; } = "Messages.psd1";
 22
 23    /// <summary>
 24    /// Gets or sets the query string key used to request a culture. Default is "lang".
 25    /// </summary>
 1826    public string QueryKey { get; set; } = "lang";
 27
 28    /// <summary>
 29    /// Gets or sets the cookie name used to request a culture. Default is "lang".
 30    /// </summary>
 1731    public string CookieName { get; set; } = "lang";
 32
 33    /// <summary>
 34    /// Gets or sets a value indicating whether Accept-Language should be used. Default is true.
 35    /// </summary>
 2236    public bool EnableAcceptLanguage { get; set; } = true;
 37
 38    /// <summary>
 39    /// Gets or sets a value indicating whether query string resolution is enabled. Default is false.
 40    /// </summary>
 1141    public bool EnableQuery { get; set; }
 42
 43    /// <summary>
 44    /// Gets or sets a value indicating whether cookie resolution is enabled. Default is false.
 45    /// </summary>
 846    public bool EnableCookie { get; set; }
 47
 48    /// <summary>
 49    /// Gets or sets a value indicating whether to set the thread's culture to the resolved culture. Default is false.
 50    /// </summary>
 851    public bool SetDefaultThreadCulture { get; set; }
 52}