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

samsmithnz / SatisfactoryTree / 17618715517

10 Sep 2025 03:26PM UTC coverage: 90.318% (+37.4%) from 52.88%
17618715517

Pull #284

github

web-flow
Merge 478284a09 into e771c4f78
Pull Request #284: Reworking logic to handle imports and exports

290 of 336 branches covered (86.31%)

Branch coverage included in aggregate %.

932 of 1017 new or added lines in 27 files covered. (91.64%)

932 of 1017 relevant lines covered (91.64%)

848.7 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; }
25,248✔
6
        public double Power { get; set; }
5,290✔
7
        public double? MinPower { get; set; }
609✔
8
        public double? MaxPower { get; set; }
609✔
9

10
        // Parameterless constructor for JSON deserialization
11
        public Building()
4,312✔
12
        {
4,312✔
13
            Name = string.Empty;
4,312✔
14
        }
4,312✔
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

© 2026 Coveralls, Inc