< Summary

Information
Class: MyNet.Text.Text
Assembly: MyNet.Text
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Text/Text.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 24
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
For(...)100%22100%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Text/Text.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="Text.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System.Globalization;
 8
 9namespace MyNet.Text;
 10
 11/// <summary>
 12/// A portal to string transformation using ITextTransform.
 13/// </summary>
 14public static class Text
 15{
 16    /// <summary>
 17    /// Transforms a string using the provided transformers. Transformations are applied in the provided order.
 18    /// </summary>
 19    /// <param name="value">The initial string value to transform.</param>
 20    /// <param name="culture">The culture to use for culture-specific transformations.</param>
 21    /// <returns>A TextPipeline instance for chaining transformations.</returns>
 2722    public static TextPipeline For(string value, CultureInfo? culture = null) => new(value, culture ?? CultureInfo.Curre
 23}
 24