< 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    {
 6017        MethodName = methodName; IsAsync = isAsync; IsVoidLike = isVoidLike;
 4018        ReturnValueTypeFQN = returnValueTypeFQN; ReturnJsonSchemaType = returnJsonSchemaType;
 2019        ReturnObjectSchemaJson = returnObjectSchemaJson;
 4020        Parameters = parameters; Description = description;
 2021    }
 22
 8023    public string MethodName { get; }
 4024    public bool IsAsync { get; }
 2025    public bool IsVoidLike { get; }
 026    public string? ReturnValueTypeFQN { get; }
 5527    public string? ReturnJsonSchemaType { get; }
 1728    public string? ReturnObjectSchemaJson { get; }
 6029    public ImmutableArray<AgentFunctionParameterInfo> Parameters { get; }
 2030    public string Description { get; }
 31}