< Summary

Information
Class: NexusLabs.Needlr.Generators.Models.OptionsValidatorInfo
Assembly: NexusLabs.Needlr.Generators
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.Generators/Models/Options/OptionsValidatorInfo.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_MethodName()100%11100%
get_IsStatic()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.Generators/Models/Options/OptionsValidatorInfo.cs

#LineLine coverage
 1namespace NexusLabs.Needlr.Generators.Models;
 2
 3/// <summary>
 4/// Information about a validation method.
 5/// </summary>
 6internal readonly struct OptionsValidatorInfo
 7{
 8    public OptionsValidatorInfo(string methodName, bool isStatic)
 9    {
 1810        MethodName = methodName;
 1811        IsStatic = isStatic;
 1812    }
 13
 14    /// <summary>Name of the validator method.</summary>
 2215    public string MethodName { get; }
 16
 17    /// <summary>True if the method is static.</summary>
 3418    public bool IsStatic { get; }
 19}