< Summary

Information
Class: LGDXRobotCloud.Data.Entities.AutoTask
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/AutoTask.cs
Line coverage
93%
Covered lines: 14
Uncovered lines: 1
Coverable lines: 15
Total lines: 48
Line coverage: 93.3%
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_AutoTaskDetails()100%11100%
get_AutoTaskJourneys()100%11100%
get_Priority()100%11100%
get_Flow()100%11100%
get_FlowId()100%11100%
get_Realm()100%11100%
get_RealmId()100%11100%
get_AssignedRobot()100%210%
get_AssignedRobotId()100%11100%
get_CurrentProgress()100%11100%
get_CurrentProgressId()100%11100%
get_CurrentProgressOrder()100%11100%
get_NextToken()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3using Microsoft.EntityFrameworkCore;
 4
 5namespace LGDXRobotCloud.Data.Entities;
 6
 7[Table("Automation.AutoTasks")]
 8[Index(nameof(RealmId), nameof(AssignedRobotId))]
 9public class AutoTask
 10{
 11  [Key]
 12  [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 62813  public int Id { get; set; }
 14
 15  [MaxLength(50)]
 60516  public string? Name { get; set; }
 17
 50018  public ICollection<AutoTaskDetail> AutoTaskDetails { get; set; } = [];
 19
 48620  public ICollection<AutoTaskJourney> AutoTaskJourneys { get; set; } = [];
 21
 51222  public int Priority { get; set; }
 23
 24  [ForeignKey("FlowId")]
 48625  public Flow? Flow { get; set; } = null!;
 26
 53127  public int? FlowId { get; set; }
 28
 29  [ForeignKey("RealmId")]
 48630  public Realm Realm { get; set; } = null!;
 31
 52132  public int RealmId { get; set; }
 33
 34  [ForeignKey("AssignedRobotId")]
 035  public Robot? AssignedRobot { get; set; }
 36
 44937  public Guid? AssignedRobotId { get; set; }
 38
 39  [ForeignKey("CurrentProgressId")]
 49140  public Progress CurrentProgress { get; set; } = null!;
 41
 71742  public int CurrentProgressId { get; set; }
 43
 11844  public int? CurrentProgressOrder { get; set; }
 45
 46  [MaxLength(32)]
 16647  public string? NextToken { get; set; }
 48}