< Summary - Code Coverage

Information
Class: Plainquire.Filter.FilterExpressionException
Assembly: Plainquire.Filter
File(s): /home/runner/work/plainquire/plainquire/Plainquire.Filter/Plainquire.Filter/Exceptions/FilterExpressionException.cs
Tag: 64_13932151703
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 56
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 1
Total methods: 1
Method coverage: 100%

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/plainquire/plainquire/Plainquire.Filter/Plainquire.Filter/Exceptions/FilterExpressionException.cs

#LineLine coverage
 1using Plainquire.Filter.Abstractions;
 2using System;
 3using System.Collections.Generic;
 4
 5namespace Plainquire.Filter;
 6
 7/// <summary>
 8/// Exception is thrown when a filter expression cannot be created
 9/// </summary>
 10/// <seealso cref="Exception"/>
 11[Serializable] /* Required, see https://github.com/JamesNK/Newtonsoft.Json/issues/1622 */
 12public class FilterExpressionException : Exception
 13{
 14    /// <summary>
 15    /// The type of the filtered entity.
 16    /// </summary>
 17    public Type? FilteredEntity { get; set; }
 18
 19    /// <summary>
 20    /// The path to the filtered property.
 21    /// </summary>
 22    public string? FilteredProperty { get; set; }
 23
 24    /// <summary>
 25    /// The type of the filtered property.
 26    /// </summary>
 27    public Type? FilteredPropertyType { get; set; }
 28
 29    /// <summary>
 30    /// The operator used to filter.
 31    /// </summary>
 32    public FilterOperator? FilterOperator { get; set; }
 33
 34    /// <summary>
 35    /// The value to be parsed.
 36    /// </summary>
 37    public object? Value { get; set; }
 38
 39    /// <summary>
 40    /// The type of the value to be parsed.
 41    /// </summary>
 42    public Type? ValueType { get; set; }
 43
 44    /// <summary>
 45    /// The supported filter operators for filtered property.
 46    /// </summary>
 47    public IEnumerable<FilterOperator> SupportedFilterOperators { get; set; } = Array.Empty<FilterOperator>();
 48
 49    /// <summary>Initializes a new instance of the <see cref="T:FilterExpressionCreationException"/> class with a specif
 50    /// <param name="message">The error message that explains the reason for the exception. </param>
 51    /// <param name="innerException">The exception that is the cause of the current exception. If the <paramref name="in
 52    public FilterExpressionException(string message, Exception? innerException = null)
 219353        : base(message, innerException)
 54    {
 219355    }
 56}