< Summary

Information
Class: LGDXRobotCloud.Data.Entities.Robot
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/Robot.cs
Line coverage
88%
Covered lines: 8
Uncovered lines: 1
Coverable lines: 9
Total lines: 32
Line coverage: 88.8%
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%11100%
get_Name()100%11100%
get_Realm()100%11100%
get_RealmId()100%11100%
get_IsProtectingHardwareSerialNumber()100%11100%
get_RobotCertificate()100%11100%
get_RobotSystemInfo()100%210%
get_RobotChassisInfo()100%11100%
get_AssignedTasks()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace LGDXRobotCloud.Data.Entities;
 5
 6[Table("Navigation.Robots")]
 7public class Robot
 8{
 9  [Key]
 10  [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 16111  public Guid Id { get; set; }
 12
 13  [MaxLength(50)]
 14  [Required]
 28115  public string Name { get; set; } = null!;
 16
 17  [ForeignKey("RealmId")]
 12518  public Realm Realm { get; set; } = null!;
 19
 20  [Required]
 10721  public int RealmId { get; set; }
 22
 2623  public bool IsProtectingHardwareSerialNumber { get; set; }
 24
 12625  public RobotCertificate RobotCertificate { get; set; } = null!;
 26
 027  public RobotSystemInfo? RobotSystemInfo { get; set; }
 28
 129  public RobotChassisInfo? RobotChassisInfo { get; set; }
 30
 14431  public ICollection<AutoTask> AssignedTasks { get; set; } = [];
 32}