< Summary

Information
Class: LGDXRobotCloud.Data.Entities.Robot
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/Robot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 34
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_IsRealtimeExchange()100%210%
get_IsProtectingHardwareSerialNumber()100%210%
get_RobotCertificate()100%210%
get_RobotSystemInfo()100%210%
get_RobotChassisInfo()100%210%
get_AssignedTasks()100%210%

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)]
 011  public Guid Id { get; set; }
 12
 13  [MaxLength(50)]
 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
 023  public bool IsRealtimeExchange { get; set; }
 24
 025  public bool IsProtectingHardwareSerialNumber { get; set; }
 26
 027  public RobotCertificate RobotCertificate { get; set; } = null!;
 28
 029  public RobotSystemInfo? RobotSystemInfo { get; set; }
 30
 031  public RobotChassisInfo? RobotChassisInfo { get; set; }
 32
 033  public ICollection<AutoTask> AssignedTasks { get; set; } = [];
 34}