< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Workspace.CompareExchangeResult
Assembly: NexusLabs.Needlr.AgentFramework
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework/Workspace/CompareExchangeResult.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 10
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_Exchanged()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework/Workspace/CompareExchangeResult.cs

#LineLine coverage
 1namespace NexusLabs.Needlr.AgentFramework.Workspace;
 2
 3/// <summary>Result data for a successful <see cref="IWorkspace.TryCompareExchange"/> call.</summary>
 4/// <param name="Exchanged">Whether the content was swapped.</param>
 5/// <param name="Reason">
 6/// Why the exchange did not happen when <paramref name="Exchanged"/> is
 7/// <see langword="false"/> (e.g., "content mismatch"). <see langword="null"/>
 8/// when the exchange succeeded.
 9/// </param>
 1010public sealed record CompareExchangeResult(bool Exchanged, string? Reason);

Methods/Properties

get_Exchanged()