< Summary

Information
Class: Fluorite.Strainer.Models.Filtering.Terms.FilterTerm
Assembly: Fluorite.Strainer
File(s): /builds/fluorite/strainer/src/Strainer/Models/Filtering/Terms/FilterTerm.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 40
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
.ctor(...)100%11100%
get_Input()100%11100%
get_Names()100%11100%
get_Operator()100%11100%
get_Values()100%11100%

File(s)

/builds/fluorite/strainer/src/Strainer/Models/Filtering/Terms/FilterTerm.cs

#LineLine coverage
 1using Fluorite.Strainer.Models.Filtering.Operators;
 2
 3namespace Fluorite.Strainer.Models.Filtering.Terms;
 4
 5/// <summary>
 6/// Holds segregated details about a single filtering term.
 7/// </summary>
 8public class FilterTerm : IFilterTerm
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="FilterTerm"/> class.
 12    /// </summary>
 13    /// <param name="input">
 14    /// The filter input from Strainer model.
 15    /// </param>
 916    public FilterTerm(string input)
 17    {
 918        Input = input;
 919        Names = new List<string>();
 920        Values = new List<string>();
 921    }
 22
 23    /// <inheritdoc/>
 924    public string Input { get; }
 25
 26    /// <summary>
 27    /// Gets or sets the list of names.
 28    /// </summary>
 2729    public IList<string> Names { get; set; }
 30
 31    /// <summary>
 32    /// Gets or sets the filter operator.
 33    /// </summary>
 2634    public IFilterOperator? Operator { get; set; }
 35
 36    /// <summary>
 37    /// Gets or sets the list of values.
 38    /// </summary>
 2739    public IList<string> Values { get; set; }
 40}