< Summary

Information
Class: NexusLabs.Needlr.Generators.Models.PositionalRecordInfo
Assembly: NexusLabs.Needlr.Generators
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.Generators/Models/Options/PositionalRecordInfo.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 33
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_ShortTypeName()100%11100%
get_ContainingNamespace()100%11100%
get_IsPartial()100%11100%
get_Parameters()100%11100%

File(s)

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

#LineLine coverage
 1using System.Collections.Generic;
 2
 3namespace NexusLabs.Needlr.Generators.Models;
 4
 5/// <summary>
 6/// Information about a positional record's primary constructor parameters.
 7/// </summary>
 8internal readonly struct PositionalRecordInfo
 9{
 10    public PositionalRecordInfo(
 11        string shortTypeName,
 12        string containingNamespace,
 13        bool isPartial,
 14        IReadOnlyList<PositionalRecordParameter> parameters)
 15    {
 916        ShortTypeName = shortTypeName;
 917        ContainingNamespace = containingNamespace;
 918        IsPartial = isPartial;
 919        Parameters = parameters;
 920    }
 21
 22    /// <summary>The simple type name (without namespace).</summary>
 1423    public string ShortTypeName { get; }
 24
 25    /// <summary>The containing namespace.</summary>
 726    public string ContainingNamespace { get; }
 27
 28    /// <summary>Whether the record is declared as partial.</summary>
 1829    public bool IsPartial { get; }
 30
 31    /// <summary>The primary constructor parameters.</summary>
 1732    public IReadOnlyList<PositionalRecordParameter> Parameters { get; }
 33}