< Summary

Information
Class: DirectSight.ReportContext
Assembly DirectSight
File(s): /home/runner/work/DirectSight/DirectSight/DirectSight/ReportContext.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 29
Line coverage: 100%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)50%22100%

File(s)

/home/runner/work/DirectSight/DirectSight/DirectSight/ReportContext.cs

#LineLine coverage
 1using System;
 2using DirectSight.CodeAnalysis;
 3
 4namespace DirectSight;
 5
 6/// <summary>
 7/// The context containing configuration and runtime information of the current execution.
 8/// </summary>
 9internal class ReportContext
 10{
 11    /// <summary>
 12    /// Initializes a new instance of the <see cref="ReportContext"/> class.
 13    /// </summary>
 14    /// <param name="reportConfiguration">The configuration options.</param>
 215    internal ReportContext(ReportConfiguration reportConfiguration)
 216    {
 217        this.ReportConfiguration = reportConfiguration ?? throw new ArgumentNullException(nameof(reportConfiguration));
 218    }
 19
 20    /// <summary>
 21    /// Gets the configuration options.
 22    /// </summary>
 8023    public ReportConfiguration ReportConfiguration { get; }
 24
 25    /// <summary>
 26    /// Gets or sets the risk hotspot analysis result.
 27    /// </summary>
 1028    public RiskHotspotAnalysisResult RiskHotspotAnalysisResult { get; set; }
 29}