< Summary

Information
Class: TeleFlow.Telegram.Internal.Handlers.TelegramCommandTextNormalizer
Assembly: TeleFlow.Framework
File(s): /_/src/TeleFlow.Framework/Internal/Handlers/TelegramCommandTextNormalizer.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 19
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
Normalize(...)100%22100%

File(s)

/_/src/TeleFlow.Framework/Internal/Handlers/TelegramCommandTextNormalizer.cs

#LineLine coverage
 1using System.Text;
 2
 3namespace TeleFlow.Telegram.Internal.Handlers;
 4
 5/// <summary>
 6/// Canonicalizes command route patterns and incoming command bodies so visually
 7/// equivalent Unicode sequences use the same runtime matching representation.
 8/// </summary>
 9internal static class TelegramCommandTextNormalizer
 10{
 11    public static string Normalize(string value)
 12    {
 60013        ArgumentNullException.ThrowIfNull(value);
 14
 60015        return value.IsNormalized(NormalizationForm.FormC)
 60016            ? value
 60017            : value.Normalize(NormalizationForm.FormC);
 18    }
 19}

Methods/Properties

Normalize(System.String)