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

samsmithnz / SatisfactoryTree / 17631712519

11 Sep 2025 01:58AM UTC coverage: 90.507% (+37.6%) from 52.88%
17631712519

push

github

web-flow
Merge pull request #284 from samsmithnz/ReworkingLogicToHandleImportsAndExports

Reworking logic to handle imports and exports

298 of 344 branches covered (86.63%)

Branch coverage included in aggregate %.

951 of 1036 new or added lines in 28 files covered. (91.8%)

951 of 1036 relevant lines covered (91.8%)

861.84 hits per line

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

52.17
/src/SatisfactoryTree.Logic/Models/Building.cs
1
namespace SatisfactoryTree.Logic.Models
2
{
3
    public class Building
4
    {
5
        public string Name { get; set; }
27,096✔
6
        public double Power { get; set; }
5,906✔
7
        public double? MinPower { get; set; }
695✔
8
        public double? MaxPower { get; set; }
695✔
9

10
        // Parameterless constructor for JSON deserialization
11
        public Building()
5,544✔
12
        {
5,544✔
13
            Name = string.Empty;
5,544✔
14
        }
5,544✔
15

16
        public Building(string name)
3,111✔
17
        {
3,111✔
18
            Name = name;
3,111✔
19
        }
3,111✔
20

21
        public override bool Equals(object? obj)
NEW
22
        {
×
NEW
23
            if (obj is Building otherBuilding)
×
NEW
24
            {
×
NEW
25
                return Name == otherBuilding.Name;
×
26
            }
NEW
27
            return false;
×
NEW
28
        }
×
29

30
        public override int GetHashCode()
NEW
31
        {
×
NEW
32
            return Name.GetHashCode();
×
NEW
33
        }
×
34
    }
35
}
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