< Summary

Information
Class: LGDXRobotCloud.Data.Contracts.AutoTaskNavProgress
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Contracts/RobotDataContract.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 38
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Eta()100%11100%
get_Recoveries()100%11100%
get_DistanceRemaining()100%11100%
get_WaypointsRemaining()100%11100%

File(s)

/builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Contracts/RobotDataContract.cs

#LineLine coverage
 1using LGDXRobotCloud.Utilities.Enums;
 2
 3namespace LGDXRobotCloud.Data.Contracts;
 4
 5public record AutoTaskNavProgress
 6{
 37  public double Eta { get; set; }
 38  public int Recoveries { get; set; }
 39  public double DistanceRemaining { get; set; }
 310  public int WaypointsRemaining { get; set; }
 11}
 12
 13public record RobotDof
 14{
 15  public double X { get; set; }
 16  public double Y { get; set; }
 17  public double Rotation { get; set; }
 18}
 19
 20public record RobotCriticalStatus
 21{
 22  public bool HardwareEmergencyStop { get; set; }
 23  public bool SoftwareEmergencyStop { get; set; }
 24  public List<int> BatteryLow { get; set; } = [];
 25  public List<int> MotorDamaged { get; set; } = [];
 26}
 27
 28public record RobotDataContract
 29{
 30  public required Guid RobotId { get; set; }
 31  public required int RealmId { get; set; }
 32  public RobotStatus RobotStatus { get; set; } = RobotStatus.Offline;
 33  public RobotCriticalStatus CriticalStatus { get; set; } = new();
 34  public List<double> Batteries { get; set; } = [];
 35  public RobotDof Position { get; set; } = new();
 36  public AutoTaskNavProgress NavProgress { get; set; } = new();
 37  public DateTime CurrentTime { get; set; } = DateTime.UtcNow;
 38}