< Summary

Information
Class: Pozitron.QuerySpecification.LikeExpression<T>
Assembly: Pozitron.QuerySpecification
File(s): /home/runner/work/QuerySpecification/QuerySpecification/src/QuerySpecification/Expressions/LikeExpression.cs
Tag: 44_11195777782
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 21
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
get_KeySelector()100%11100%
get_Pattern()100%11100%
get_Group()100%11100%
.ctor(...)100%11100%
get_KeySelectorFunc()100%22100%

File(s)

/home/runner/work/QuerySpecification/QuerySpecification/src/QuerySpecification/Expressions/LikeExpression.cs

#LineLine coverage
 1namespace Pozitron.QuerySpecification;
 2
 3public class LikeExpression<T>
 4{
 5    private Func<T, string?>? _keySelectorFunc;
 886    public Expression<Func<T, string?>> KeySelector { get; }
 1227    public string Pattern { get; }
 838    public int Group { get; }
 9
 7010    public LikeExpression(Expression<Func<T, string?>> keySelector, string pattern, int group = 1)
 11    {
 7012        ArgumentNullException.ThrowIfNull(keySelector);
 6913        ArgumentException.ThrowIfNullOrEmpty(pattern);
 14
 6815        KeySelector = keySelector;
 6816        Pattern = pattern;
 6817        Group = group;
 6818    }
 19
 9720    public Func<T, string?> KeySelectorFunc => _keySelectorFunc ??= KeySelector.Compile();
 21}