< Summary

Information
Class: Pozitron.QuerySpecification.IncludeExpression<T>
Assembly: Pozitron.QuerySpecification
File(s): /home/runner/work/QuerySpecification/QuerySpecification/src/QuerySpecification/Expressions/IncludeExpression.cs
Tag: 52_11740816328
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 32
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_LambdaExpression()100%11100%
get_Type()100%11100%
.ctor(...)100%11100%

File(s)

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

#LineLine coverage
 1using System.Diagnostics;
 2
 3namespace Pozitron.QuerySpecification;
 4
 5/// <summary>
 6/// Represents an include expression used in a specification.
 7/// </summary>
 8/// <typeparam name="T">The type of the entity.</typeparam>
 9public sealed class IncludeExpression<T>
 10{
 11    /// <summary>
 12    /// Gets the lambda expression for the include.
 13    /// </summary>
 614    public LambdaExpression LambdaExpression { get; }
 15
 16    /// <summary>
 17    /// Gets the type of the include.
 18    /// </summary>
 19619    public IncludeType Type { get; }
 20
 21    /// <summary>
 22    /// Initializes a new instance of the <see cref="IncludeExpression{T}"/> class.
 23    /// </summary>
 24    /// <param name="expression">The lambda expression for the include.</param>
 25    /// <param name="type">The type of the include.</param>
 25626    public IncludeExpression(LambdaExpression expression, IncludeType type)
 27    {
 28        Debug.Assert(expression is not null);
 25629        LambdaExpression = expression;
 25630        Type = type;
 25631    }
 32}