• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LBreedlove / Queuebal.Expressions / 15762496729

19 Jun 2025 04:30PM UTC coverage: 88.035% (-1.6%) from 89.614%
15762496729

push

github

LBreedlove
Change Expression references to IExpression

260 of 285 branches covered (91.23%)

Branch coverage included in aggregate %.

16 of 48 new or added lines in 13 files covered. (33.33%)

1528 of 1746 relevant lines covered (87.51%)

196.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

7.69
/Queuebal.Expressions.Mutations/ToLowerMutation.cs
1
using Queuebal.Json;
2

3
namespace Queuebal.Expressions.Mutations;
4

5

6
public class ToLowerMutation : Mutation
7
{
8
    public static string MutationType => "ToLower";
1✔
9

10
    /// <summary>
11
    /// Indicates if the string should be converted to lowercase
12
    /// using the casing rules of the invariant culture.
13
    /// </summary>
NEW
14
    public bool UseInvariantCulture { get; set; } = true;
×
15

16
    protected override JSONValue EvaluateMutation(ExpressionContext context, JSONValue inputValue)
NEW
17
    {
×
NEW
18
        if (!inputValue.IsString)
×
NEW
19
        {
×
NEW
20
            throw new InvalidOperationException("ToLowerMutation can only be applied to a string input value.");
×
21
        }
22

NEW
23
        if (UseInvariantCulture)
×
NEW
24
        {
×
NEW
25
            return inputValue.StringValue.ToLowerInvariant();
×
26
        }
27

28
        // If UseInvariantCulture is false, use the current culture
NEW
29
        return inputValue.StringValue.ToLower();
×
NEW
30
    }
×
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc