< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Scripting.ScriptLanguageAttribute
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Scripting/ScriptLanguageAttribute.cs
Tag: Kestrun/Kestrun@9d3a582b2d63930269564a7591aa77ef297cadeb
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 19
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%
get_Language()100%11100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Scripting/ScriptLanguageAttribute.cs

#LineLine coverage
 1namespace Kestrun.Scripting;
 2
 3/// <summary>
 4/// Attribute to specify the script language for a method or delegate.
 5/// </summary>
 6/// <remarks>
 7/// Initializes a new instance of the <see cref="ScriptLanguageAttribute"/> class.
 8/// </remarks>
 9/// <param name="lang">The script language to associate with the method or delegate.</param>
 10[AttributeUsage(AttributeTargets.Method | AttributeTargets.Delegate,
 11             AllowMultiple = false)]
 112public sealed class ScriptLanguageAttribute(ScriptLanguage lang) : Attribute
 13{
 14    /// <summary>
 15    /// Gets the script language associated with this attribute.
 16    /// </summary>
 217    public ScriptLanguage Language { get; } = lang;
 18}
 19