< Summary

Information
Class: CounterDrone.Core.Models.EquipmentDeployment
Assembly: CounterDrone.Core
File(s): C:\Users\Tellme\apps\CounterDroneBackend\src\CounterDrone.Core\Models\EquipmentDeployment.cs
Line coverage
100%
Covered lines: 16
Uncovered lines: 0
Coverable lines: 16
Total lines: 44
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_Id()100%11100%
get_TaskId()100%11100%
get_EquipmentRole()100%11100%
get_Quantity()100%11100%
get_GroupId()100%11100%
get_PlatformType()100%11100%
get_PositionX()100%11100%
get_PositionY()100%11100%
get_PositionZ()100%11100%
get_AerosolType()100%11100%
get_MunitionCount()100%11100%
get_Source()100%11100%
get_MuzzleVelocity()100%11100%
get_ReleaseAltitude()100%11100%
get_Cooldown()100%11100%
get_DetectionRadius()100%11100%

File(s)

C:\Users\Tellme\apps\CounterDroneBackend\src\CounterDrone.Core\Models\EquipmentDeployment.cs

#LineLine coverage
 1using System;
 2using SQLite;
 3
 4namespace CounterDrone.Core.Models
 5{
 6    /// <summary>步骤3:装备部署</summary>
 7    [Table("EquipmentDeployment")]
 8    public class EquipmentDeployment
 9    {
 10        [PrimaryKey]
 19511        public string Id { get; set; } = Guid.NewGuid().ToString();
 12
 13        [Indexed]
 19514        public string TaskId { get; set; } = string.Empty;
 15
 32316        public int EquipmentRole { get; set; } = (int)Models.EquipmentRole.LaunchPlatform;
 17
 26318        public int Quantity { get; set; } = 1;
 19
 17320        public string GroupId { get; set; } = string.Empty;
 21
 22        // 发射平台专用
 12323        public int? PlatformType { get; set; }
 24
 14125        public double PositionX { get; set; }
 12426        public double PositionY { get; set; }
 14127        public double PositionZ { get; set; }
 28
 12429        public int? AerosolType { get; set; }
 30
 11231        public int? MunitionCount { get; set; }
 32
 17333        public int Source { get; set; } = (int)ConfigSource.Manual;
 34
 9535        public double? MuzzleVelocity { get; set; }
 36
 2237        public double? ReleaseAltitude { get; set; }
 38
 21039        public double Cooldown { get; set; } = 5.0;
 40
 41        // 探测设备专用
 3642        public double? DetectionRadius { get; set; }
 43    }
 44}