< Summary

Information
Class: DirectSight.CodeAnalysis.MetricStatus
Assembly DirectSight
File(s): /home/runner/work/DirectSight/DirectSight/DirectSight/CodeAnalysis/MetricStatus.cs
Line coverage
85%
Covered lines: 6
Uncovered lines: 1
Coverable lines: 7
Total lines: 30
Line coverage: 85.7%
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%11100%

File(s)

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

#LineLine coverage
 1using DirectSight.Parser.Analysis;
 2
 3namespace DirectSight.CodeAnalysis;
 4
 5/// <summary>
 6/// Represents the status of a metric.
 7/// </summary>
 8public class MetricStatus
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="MetricStatus"/> class.
 12    /// </summary>
 13    /// <param name="metric">The metric.</param>
 14    /// <param name="exceeded">Determines whether the metric's threshold is exceeded.</param>
 21615    public MetricStatus(Metric metric, bool exceeded)
 21616    {
 21617        this.Metric = metric;
 21618        this.Exceeded = exceeded;
 21619    }
 20
 21    /// <summary>
 22    /// Gets the metric.
 23    /// </summary>
 024    public Metric Metric { get; }
 25
 26    /// <summary>
 27    /// Gets a value indicating whether the metric's threshold is exceeded.
 28    /// </summary>
 21629    public bool Exceeded { get; }
 30}