< Summary

Information
Class: LGDXRobotCloud.Data.Entities.Waypoint
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/Waypoint.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 40
Line coverage: 0%
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_Id()100%210%
get_Name()100%210%
get_Realm()100%210%
get_RealmId()100%210%
get_X()100%210%
get_Y()100%210%
get_Rotation()100%210%
get_IsParking()100%210%
get_HasCharger()100%210%
get_IsReserved()100%210%

File(s)

/builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/Waypoint.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace LGDXRobotCloud.Data.Entities;
 5
 6[Table("Navigation.Waypoints")]
 7public class Waypoint
 8{
 9  [Key]
 10  [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 011  public int Id { get; set; }
 12
 13  [MaxLength(100)]
 14  [Required]
 015  public string Name { get; set; } = null!;
 16
 17  [ForeignKey("RealmId")]
 018  public Realm Realm { get; set; } = null!;
 19
 20  [Required]
 021  public int RealmId { get; set; }
 22
 23  [Required]
 024  public double X { get; set; }
 25
 26  [Required]
 027  public double Y { get; set; }
 28
 29  [Required]
 030  public double Rotation { get; set; }
 31
 32  [Required]
 033  public bool IsParking { get; set; }
 34
 35  [Required]
 036  public bool HasCharger { get; set; }
 37
 38  [Required]
 039  public bool IsReserved { get; set; }
 40}