< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Generators.ProgressSinksEntry
Assembly: NexusLabs.Needlr.AgentFramework.Generators
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Generators/Models/ProgressSinksEntry.cs
Line coverage
85%
Covered lines: 6
Uncovered lines: 1
Coverable lines: 7
Total lines: 28
Line coverage: 85.7%
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_AgentTypeName()100%210%
get_AgentClassName()100%11100%
get_SinkTypeFQNs()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Generators/Models/ProgressSinksEntry.cs

#LineLine coverage
 1// Copyright (c) NexusLabs. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Immutable;
 5
 6namespace NexusLabs.Needlr.AgentFramework.Generators;
 7
 8/// <summary>
 9/// Discovered [ProgressSinks] attribute on an agent class.
 10/// </summary>
 11internal readonly struct ProgressSinksEntry
 12{
 13    public ProgressSinksEntry(string agentTypeName, string agentClassName, ImmutableArray<string> sinkTypeFQNs)
 14    {
 415        AgentTypeName = agentTypeName;
 416        AgentClassName = agentClassName;
 417        SinkTypeFQNs = sinkTypeFQNs;
 418    }
 19
 20    /// <summary>Fully-qualified agent type name.</summary>
 021    public string AgentTypeName { get; }
 22
 23    /// <summary>Short class name.</summary>
 424    public string AgentClassName { get; }
 25
 26    /// <summary>Fully-qualified sink type names.</summary>
 427    public ImmutableArray<string> SinkTypeFQNs { get; }
 28}