< Summary

Information
Class: TeleFlow.Telegram.TelegramGeneratedHandlerParameterDescriptor
Assembly: TeleFlow.Framework
File(s): /_/src/TeleFlow.Framework/Generated/TelegramGeneratedHandlerParameterDescriptor.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 29
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
.ctor(...)100%11100%

File(s)

/_/src/TeleFlow.Framework/Generated/TelegramGeneratedHandlerParameterDescriptor.cs

#LineLine coverage
 1using System.ComponentModel;
 2
 3namespace TeleFlow.Telegram;
 4
 5/// <summary>
 6/// Infrastructure parameter metadata emitted by TeleFlow source generators.
 7/// This API is not intended to be used by application code.
 8/// </summary>
 9[EditorBrowsable(EditorBrowsableState.Never)]
 10public sealed class TelegramGeneratedHandlerParameterDescriptor
 11{
 12    public TelegramGeneratedHandlerParameterDescriptor(
 13        Type parameterType,
 14        TelegramGeneratedHandlerParameterKind kind,
 15        string? name = null)
 16    {
 218517        ArgumentNullException.ThrowIfNull(parameterType);
 18
 19        ParameterType = parameterType;
 20        Kind = kind;
 21        Name = name;
 218522    }
 23
 24    public Type ParameterType { get; }
 25
 26    public TelegramGeneratedHandlerParameterKind Kind { get; }
 27
 28    public string? Name { get; }
 29}