< Summary

Information
Class: NGql.Core.Abstractions.SpanSegment
Assembly: NGql.Core
File(s): /home/runner/work/NGql/NGql/src/Core/Abstractions/SpanSegment.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 18
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
get_Name()100%11100%
get_Alias()100%11100%
get_ParsedType()100%11100%
get_IsLastFragment()100%11100%
get_HasAlias()100%11100%
get_HasParsedType()100%11100%

File(s)

/home/runner/work/NGql/NGql/src/Core/Abstractions/SpanSegment.cs

#LineLine coverage
 1namespace NGql.Core.Abstractions;
 2
 3/// <summary>
 4/// Ref struct for holding field segment information as spans to avoid string allocations
 5/// </summary>
 6internal readonly ref struct SpanSegment(
 7    ReadOnlySpan<char> name,
 8    ReadOnlySpan<char> alias,
 9    bool isLastFragment,
 10    ReadOnlySpan<char> parsedType)
 11{
 18083112    public ReadOnlySpan<char> Name { get; } = name;
 5847613    public ReadOnlySpan<char> Alias { get; } = alias;
 6067214    public ReadOnlySpan<char> ParsedType { get; } = parsedType;
 11328615    public bool IsLastFragment { get; } = isLastFragment;
 147616    public bool HasAlias => !Alias.IsEmpty;
 217217    public bool HasParsedType => !ParsedType.IsEmpty;
 18}