• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loresoft / MediatR.CommandQuery / 11299666305

11 Oct 2024 09:41PM UTC coverage: 59.523% (+0.8%) from 58.765%
11299666305

push

github

pwelter34
fix test

396 of 783 branches covered (50.57%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

4 existing lines in 1 file now uncovered.

1151 of 1816 relevant lines covered (63.38%)

15.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

26.32
/src/MediatR.CommandQuery/Queries/EntityFilter.cs
1
using System.Text.Json.Serialization;
2

3
using MediatR.CommandQuery.Converters;
4

5
namespace MediatR.CommandQuery.Queries;
6

7
[JsonConverter(typeof(EntityFilterConverter))]
8
public class EntityFilter
9
{
10
    [JsonPropertyName("name")]
11
    public string? Name { get; set; }
476✔
12

13
    [JsonPropertyName("operator")]
14
    public string? Operator { get; set; }
294✔
15

16
    [JsonPropertyName("value")]
17
    public object? Value { get; set; }
291✔
18

19
    [JsonPropertyName("logic")]
20
    public string? Logic { get; set; }
128✔
21

22
    [JsonPropertyName("filters")]
23
    public List<EntityFilter>? Filters { get; set; }
317✔
24

25

26
    public override int GetHashCode()
27
    {
28
        var hash = new HashCode();
×
29
        hash.Add(Name);
×
30
        hash.Add(Operator);
×
UNCOV
31
        hash.Add(Value);
×
32
        hash.Add(Logic);
×
33

UNCOV
34
        if (Filters == null)
×
35
            return hash.ToHashCode();
×
36

UNCOV
37
        foreach (var filter in Filters)
×
38
            hash.Add(filter.GetHashCode());
×
39

UNCOV
40
        return hash.ToHashCode();
×
41
    }
42
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc