< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Diagnostics.NullToolCallCollector
Assembly: NexusLabs.Needlr.AgentFramework
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework/Diagnostics/NullToolCallCollector.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 12
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
.cctor()100%11100%
DrainToolCalls()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework/Diagnostics/NullToolCallCollector.cs

#LineLine coverage
 1namespace NexusLabs.Needlr.AgentFramework.Diagnostics;
 2
 3/// <summary>
 4/// No-op <see cref="IToolCallCollector"/> used when diagnostics are not configured.
 5/// </summary>
 6[DoNotAutoRegister]
 7internal sealed class NullToolCallCollector : IToolCallCollector
 8{
 29    internal static readonly NullToolCallCollector Instance = new();
 10
 411    public IReadOnlyList<ToolCallDiagnostics> DrainToolCalls() => [];
 12}

Methods/Properties

.cctor()
DrainToolCalls()