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

loresoft / FluentCommand / 8850661434

26 Apr 2024 03:30PM UTC coverage: 54.48% (+2.6%) from 51.881%
8850661434

push

github

pwelter34
update debug settings

1152 of 2717 branches covered (42.4%)

Branch coverage included in aggregate %.

3682 of 6156 relevant lines covered (59.81%)

701.76 hits per line

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

0.0
/src/FluentCommand.Generators/Models/EntityContext.cs
1
using FluentCommand.Generators.Internal;
2

3
using Microsoft.CodeAnalysis;
4

5
namespace FluentCommand.Generators.Models;
6

7
public class EntityContext : IEquatable<EntityContext>
8
{
9
    public EntityContext(
×
10
        EntityClass entityClass,
×
11
        IEnumerable<Diagnostic> diagnostics)
×
12
    {
13
        EntityClass = entityClass;
×
14
        Diagnostics = new EquatableArray<Diagnostic>(diagnostics);
×
15
    }
×
16

17
    public EntityClass EntityClass { get; }
×
18

19
    public EquatableArray<Diagnostic> Diagnostics { get; }
×
20

21
    public bool Equals(EntityContext other)
22
    {
23
        if (ReferenceEquals(null, other))
×
24
            return false;
×
25

26
        if (ReferenceEquals(this, other))
×
27
            return true;
×
28

29
        return Equals(EntityClass, other.EntityClass)
×
30
               && Diagnostics.Equals(other.Diagnostics);
×
31
    }
32

33
    public override bool Equals(object obj)
34
    {
35
        return obj is EntityContext context && Equals(context);
×
36
    }
37

38
    public override int GetHashCode()
39
    {
40
        return HashCode.Combine(EntityClass, Diagnostics);
×
41
    }
42

43
    public static bool operator ==(EntityContext left, EntityContext right)
44
    {
45
        return Equals(left, right);
×
46
    }
47

48
    public static bool operator !=(EntityContext left, EntityContext right)
49
    {
50
        return !Equals(left, right);
×
51
    }
52
}
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

© 2026 Coveralls, Inc