< Summary

Information
Class: DirectSight.CodeAnalysis.RiskHotspot
Assembly DirectSight
File(s): /home/runner/work/DirectSight/DirectSight/DirectSight/CodeAnalysis/RiskHotspot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 13
Coverable lines: 13
Total lines: 52
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%110%

File(s)

/home/runner/work/DirectSight/DirectSight/DirectSight/CodeAnalysis/RiskHotspot.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using DirectSight.Parser.Analysis;
 3
 4namespace DirectSight.CodeAnalysis;
 5
 6/// <summary>
 7/// Represents a risk hotspot.
 8/// </summary>
 9public class RiskHotspot
 10{
 11    /// <summary>
 12    /// Initializes a new instance of the <see cref="RiskHotspot"/> class.
 13    /// </summary>
 14    /// <param name="assembly">The assembly.</param>
 15    /// <param name="class">The class.</param>
 16    /// <param name="methodMetric">The method metric.</param>
 17    /// <param name="statusMetrics">The metric with status.</param>
 18    /// <param name="fileIndex">The index of the corresponding file within the classes files.</param>
 019    public RiskHotspot(Assembly assembly, Class @class, MethodMetric methodMetric, IEnumerable<MetricStatus> statusMetri
 020    {
 021        this.Assembly = assembly;
 022        this.Class = @class;
 023        this.MethodMetric = methodMetric;
 024        this.StatusMetrics = statusMetrics;
 025        this.FileIndex = fileIndex;
 026    }
 27
 28    /// <summary>
 29    /// Gets the assembly.
 30    /// </summary>
 031    public Assembly Assembly { get; }
 32
 33    /// <summary>
 34    /// Gets the class.
 35    /// </summary>
 036    public Class Class { get; }
 37
 38    /// <summary>
 39    /// Gets the method metric.
 40    /// </summary>
 041    public MethodMetric MethodMetric { get; }
 42
 43    /// <summary>
 44    /// Gets the metric with status.
 45    /// </summary>
 046    public IEnumerable<MetricStatus> StatusMetrics { get; }
 47
 48    /// <summary>
 49    /// Gets the index of the corresponding file within the classes files.
 50    /// </summary>
 051    public int FileIndex { get; }
 52}