< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Generators.AgentFunctionMethodInfo
Assembly: NexusLabs.Needlr.AgentFramework.Generators
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Generators/Models/AgentFunctionMethodInfo.cs
Line coverage
92%
Covered lines: 12
Uncovered lines: 1
Coverable lines: 13
Total lines: 31
Line coverage: 92.3%
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_MethodName()100%11100%
get_IsAsync()100%11100%
get_IsVoidLike()100%11100%
get_ReturnValueTypeFQN()100%210%
get_ReturnJsonSchemaType()100%11100%
get_ReturnObjectSchemaJson()100%11100%
get_Parameters()100%11100%
get_Description()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Generators/Models/AgentFunctionMethodInfo.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
 8internal readonly struct AgentFunctionMethodInfo
 9{
 10    public AgentFunctionMethodInfo(
 11        string methodName, bool isAsync, bool isVoidLike,
 12        string? returnValueTypeFQN, string? returnJsonSchemaType,
 13        string? returnObjectSchemaJson,
 14        ImmutableArray<AgentFunctionParameterInfo> parameters,
 15        string description)
 16    {
 17117        MethodName = methodName; IsAsync = isAsync; IsVoidLike = isVoidLike;
 11418        ReturnValueTypeFQN = returnValueTypeFQN; ReturnJsonSchemaType = returnJsonSchemaType;
 5719        ReturnObjectSchemaJson = returnObjectSchemaJson;
 11420        Parameters = parameters; Description = description;
 5721    }
 22
 25223    public string MethodName { get; }
 11424    public bool IsAsync { get; }
 5725    public bool IsVoidLike { get; }
 026    public string? ReturnValueTypeFQN { get; }
 16627    public string? ReturnJsonSchemaType { get; }
 5428    public string? ReturnObjectSchemaJson { get; }
 17129    public ImmutableArray<AgentFunctionParameterInfo> Parameters { get; }
 5730    public string Description { get; }
 31}