< Summary

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

#LineLine coverage
 1using System.ComponentModel;
 2
 3namespace TeleFlow.Telegram;
 4
 5/// <summary>
 6/// Infrastructure route value 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 TelegramGeneratedRouteValueDescriptor
 11{
 12    public TelegramGeneratedRouteValueDescriptor(
 13        string name,
 14        Type valueType,
 15        bool isOptional = false)
 16    {
 6617        ArgumentException.ThrowIfNullOrWhiteSpace(name);
 6618        ArgumentNullException.ThrowIfNull(valueType);
 19
 20        Name = name;
 21        ValueType = valueType;
 22        IsOptional = isOptional;
 6623    }
 24
 25    public string Name { get; }
 26
 27    public Type ValueType { get; }
 28
 29    public bool IsOptional { get; }
 30}