< Summary

Information
Class: Pozitron.QuerySpecification.WhereExpression<T>
Assembly: Pozitron.QuerySpecification
File(s): /home/runner/work/QuerySpecification/QuerySpecification/src/QuerySpecification/Expressions/WhereExpression.cs
Tag: 44_11195777782
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 15
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_Filter()100%11100%
.ctor(...)100%11100%
get_FilterFunc()100%22100%

File(s)

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

#LineLine coverage
 1namespace Pozitron.QuerySpecification;
 2
 3public class WhereExpression<T>
 4{
 5    private Func<T, bool>? _filterFunc;
 726    public Expression<Func<T, bool>> Filter { get; }
 7
 798    public WhereExpression(Expression<Func<T, bool>> filter)
 9    {
 7910        ArgumentNullException.ThrowIfNull(filter);
 7811        Filter = filter;
 7812    }
 13
 2014    public Func<T, bool> FilterFunc => _filterFunc ??= Filter.Compile();
 15}