< Summary

Information
Class: MyNet.Primitives.Helpers.CharHelper
Assembly: MyNet.Primitives
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Primitives/Helpers/CharHelper.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 40
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
get_Alphabet()100%11100%
get_Numbers()100%11100%
get_HexDigits()100%11100%
get_AlphaNumbers()100%11100%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Primitives/Helpers/CharHelper.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="CharHelper.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8
 9namespace MyNet.Primitives.Helpers;
 10
 11/// <summary>
 12/// Provides helper methods and properties for working with characters.
 13/// </summary>
 14public static class CharHelper
 15{
 16    /// <summary>
 17    /// Gets the alphabet as a read-only span of characters.
 18    /// </summary>
 19    /// <returns>A read-only span of characters representing the alphabet.</returns>
 920    public static ReadOnlySpan<char> Alphabet => "abcdefghijklmnopqrstuvwxyz";
 21
 22    /// <summary>
 23    /// Gets the numbers as a read-only span of characters.
 24    /// </summary>
 25    /// <returns>A read-only span of characters representing the numbers.</returns>
 626    public static ReadOnlySpan<char> Numbers => "0123456789";
 27
 28    /// <summary>
 29    /// Gets the numbers as a read-only span of characters.
 30    /// </summary>
 31    /// <returns>A read-only span of characters representing the hexadecimal digits.</returns>
 332    public static ReadOnlySpan<char> HexDigits => "0123456789ABCDEF";
 33
 34    /// <summary>
 35    /// Gets the alphabet and numbers as a read-only span of characters.
 36    /// </summary>
 37    /// <returns>A read-only span of characters representing the alphabet and numbers.</returns>
 338    public static ReadOnlySpan<char> AlphaNumbers => "abcdefghijklmnopqrstuvwxyz0123456789";
 39}
 40