< Summary

Information
Class: CounterDrone.Core.Models.AmmunitionSpec
Assembly: CounterDrone.Core
File(s): C:\Users\Tellme\apps\CounterDroneBackend\src\CounterDrone.Core\Models\AmmunitionSpec.cs
Line coverage
100%
Covered lines: 14
Uncovered lines: 0
Coverable lines: 14
Total lines: 42
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_AerosolType()100%11100%
get_Name()100%11100%
get_InitialRadius()100%11100%
get_InitialVolume()100%11100%
get_CoreDensity()100%11100%
get_EdgeDensity()100%11100%
get_InitialTemperature()100%11100%
get_BuoyancyFactor()100%11100%
get_EffectiveConcentration()100%11100%
get_DispersionRateBase()100%11100%
get_MaxRadius()100%11100%
get_MaxDuration()100%11100%
get_ParticlesJson()100%11100%

File(s)

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

#LineLine coverage
 1using System;
 2using SQLite;
 3
 4namespace CounterDrone.Core.Models
 5{
 6    /// <summary>弹药基础参数(第三方数据)</summary>
 7    [Table("AmmunitionSpec")]
 8    public class AmmunitionSpec
 9    {
 10        [PrimaryKey]
 15311        public string Id { get; set; } = Guid.NewGuid().ToString();
 12
 10713        public int AerosolType { get; set; }
 14
 16515        public string Name { get; set; } = string.Empty;
 16
 17        // 初始扩散状态
 124918        public double InitialRadius { get; set; }
 19
 15420        public double InitialVolume { get; set; }
 21
 85122        public double CoreDensity { get; set; }
 23
 6524        public double EdgeDensity { get; set; }
 25
 5826        public double InitialTemperature { get; set; }
 27
 5828        public double BuoyancyFactor { get; set; }
 29
 30        // 弹药基础参数
 8931        public double EffectiveConcentration { get; set; }
 32
 46433        public double DispersionRateBase { get; set; }
 34
 46335        public double MaxRadius { get; set; }
 36
 47637        public double MaxDuration { get; set; }
 38
 39        /// <summary>粒子渲染参数 JSON</summary>
 14040        public string ParticlesJson { get; set; } = "{}";
 41    }
 42}