< Summary

Information
Class: CounterDrone.Core.Models.TargetConfig
Assembly: CounterDrone.Core
File(s): C:\Users\Tellme\apps\CounterDroneBackend\src\CounterDrone.Core\Models\TargetConfig.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 30
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_GroupId()100%11100%
get_TargetType()100%11100%
get_Quantity()100%11100%
get_PowerType()100%11100%
get_Wingspan()100%11100%
get_TypicalSpeed()100%11100%
get_TypicalAltitude()100%11100%

File(s)

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

#LineLine coverage
 1using System;
 2using SQLite;
 3
 4namespace CounterDrone.Core.Models
 5{
 6    /// <summary>步骤2:目标配置</summary>
 7    [Table("TargetConfig")]
 8    public class TargetConfig
 9    {
 10        [PrimaryKey]
 13511        public string Id { get; set; } = Guid.NewGuid().ToString();
 12
 13        [Indexed]
 12014        public string TaskId { get; set; } = string.Empty;
 15
 11716        public string GroupId { get; set; } = string.Empty;
 17
 16218        public int TargetType { get; set; } = (int)Models.TargetType.Rotor;
 19
 19620        public int Quantity { get; set; } = 1;
 21
 17022        public int PowerType { get; set; } = (int)Models.PowerType.Electric;
 23
 13424        public double Wingspan { get; set; } = 1.2;
 25
 18926        public double TypicalSpeed { get; set; } = 60.0;
 27
 18728        public double TypicalAltitude { get; set; } = 300.0;
 29    }
 30}