< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Diagnostics.NullChatCompletionCollector
Assembly: NexusLabs.Needlr.AgentFramework
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework/Diagnostics/NullChatCompletionCollector.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%
DrainCompletions()100%11100%

File(s)

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

#LineLine coverage
 1namespace NexusLabs.Needlr.AgentFramework.Diagnostics;
 2
 3/// <summary>
 4/// No-op <see cref="IChatCompletionCollector"/> returned when diagnostics middleware is not wired.
 5/// </summary>
 6[DoNotAutoRegister]
 7internal sealed class NullChatCompletionCollector : IChatCompletionCollector
 8{
 29    internal static readonly NullChatCompletionCollector Instance = new();
 10
 211    public IReadOnlyList<ChatCompletionDiagnostics> DrainCompletions() => [];
 12}

Methods/Properties

.cctor()
DrainCompletions()