< Summary

Information
Class: CounterDrone.Core.Models.SimEvent
Assembly: CounterDrone.Core
File(s): C:\Users\Tellme\apps\CounterDroneBackend\src\CounterDrone.Core\Models\SimEvent.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 28
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_TaskId()100%210%
get_OccurredAt()100%210%
get_EventType()100%210%
get_SourceId()100%210%
get_TargetId()100%210%
get_DataJson()100%210%
get_Description()100%210%

File(s)

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

#LineLine coverage
 1using System;
 2using SQLite;
 3
 4namespace CounterDrone.Core.Models
 5{
 6    /// <summary>仿真事件(时序图数据源)— 存主库</summary>
 7    [Table("SimEvent")]
 8    public class SimEvent
 9    {
 10        [PrimaryKey]
 011        public string Id { get; set; } = Guid.NewGuid().ToString();
 12
 13        [Indexed]
 014        public string TaskId { get; set; } = string.Empty;
 15
 016        public double OccurredAt { get; set; }
 17
 018        public int EventType { get; set; }
 19
 020        public string SourceId { get; set; } = string.Empty;
 21
 022        public string TargetId { get; set; } = string.Empty;
 23
 024        public string DataJson { get; set; } = "{}";
 25
 026        public string Description { get; set; } = string.Empty;
 27    }
 28}