• 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

34.21
/src/FluentCommand.Generators/Models/EntityProperty.cs
1
using FluentCommand.Generators.Internal;
2

3
namespace FluentCommand.Generators.Models;
4

5
public sealed class EntityProperty : IEquatable<EntityProperty>
6
{
7
    public EntityProperty(
15✔
8
        string propertyName,
15✔
9
        string propertyType,
15✔
10
        string parameterName = null,
15✔
11
        string converterName = null)
15✔
12
    {
13
        PropertyName = propertyName;
15✔
14
        PropertyType = propertyType;
15✔
15
        ParameterName = parameterName;
15✔
16
        ConverterName = converterName;
15✔
17
    }
15✔
18

19
    public string PropertyName { get; }
75✔
20

21
    public string PropertyType { get; }
45✔
22

23
    public string ParameterName { get; }
×
24

25
    public string ConverterName { get; }
15✔
26

27
    public bool Equals(EntityProperty other)
28
    {
29
        if (ReferenceEquals(null, other))
×
30
            return false;
×
31

32
        if (ReferenceEquals(this, other))
×
33
            return true;
×
34

35
        return PropertyName == other.PropertyName
×
36
               && PropertyType == other.PropertyType
×
37
               && ParameterName == other.ParameterName
×
38
               && ConverterName == other.ConverterName;
×
39
    }
40

41
    public override bool Equals(object obj)
42
    {
43
        return obj is EntityProperty property && Equals(property);
×
44
    }
45

46
    public override int GetHashCode()
47
    {
48
        return HashCode.Combine(PropertyName, PropertyType, ParameterName, ConverterName);
×
49
    }
50

51
    public static bool operator ==(EntityProperty left, EntityProperty right)
52
    {
53
        return Equals(left, right);
×
54
    }
55

56
    public static bool operator !=(EntityProperty left, EntityProperty right)
57
    {
58
        return !Equals(left, right);
×
59
    }
60
}
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