< Summary

Information
Class: DirectSight.Parser.Analysis.LineAnalysis
Assembly DirectSight
File(s): /home/runner/work/DirectSight/DirectSight/DirectSight/Parser/Analysis/LineAnalysis.cs
Line coverage
100%
Covered lines: 16
Uncovered lines: 0
Coverable lines: 16
Total lines: 79
Line coverage: 100%
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%
.ctor(...)100%11100%

File(s)

/home/runner/work/DirectSight/DirectSight/DirectSight/Parser/Analysis/LineAnalysis.cs

#LineLine coverage
 1using System.Collections.Generic;
 2
 3namespace DirectSight.Parser.Analysis;
 4
 5/// <summary>
 6/// Full coverage information of a line in a source file.
 7/// </summary>
 8public class LineAnalysis : ShortLineAnalysis
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="LineAnalysis" /> class.
 12    /// </summary>
 13    /// <param name="lineVisits">The number of line visits.</param>
 14    /// <param name="lineVisitStatus">The line visit status.</param>
 15    /// <param name="lineCoverageByTestMethod">The line coverage by test method.</param>
 16    /// <param name="lineNumber">The line number.</param>
 17    /// <param name="lineContent">Content of the line.</param>
 18    internal LineAnalysis(int lineVisits, LineVisitStatus lineVisitStatus, IDictionary<TestMethod, ShortLineAnalysis> li
 254219        : base(lineVisits, lineVisitStatus)
 254220    {
 254221        this.LineCoverageByTestMethod = lineCoverageByTestMethod;
 254222        this.LineNumber = lineNumber;
 254223        this.LineContent = lineContent;
 254224    }
 25
 26    /// <summary>
 27    /// Initializes a new instance of the <see cref="LineAnalysis" /> class.
 28    /// </summary>
 29    /// <param name="lineVisits">The number of line visits.</param>
 30    /// <param name="lineVisitStatus">The line visit status.</param>
 31    /// <param name="lineCoverageByTestMethod">The line coverage by test method.</param>
 32    /// <param name="lineNumber">The line number.</param>
 33    /// <param name="lineContent">Content of the line.</param>
 34    /// <param name="coveredBranches">The covered branches.</param>
 35    /// <param name="totalBranches">The total branches.</param>
 36    internal LineAnalysis(int lineVisits, LineVisitStatus lineVisitStatus, IDictionary<TestMethod, ShortLineAnalysis> li
 2537        : this(lineVisits, lineVisitStatus, lineCoverageByTestMethod, lineNumber, lineContent)
 2538    {
 2539        this.CoveredBranches = coveredBranches;
 2540        this.TotalBranches = totalBranches;
 2541    }
 42
 43    /// <summary>
 44    /// Gets the line number.
 45    /// </summary>
 760646    public int LineNumber { get; }
 47
 48    /// <summary>
 49    /// Gets the content of the line.
 50    /// </summary>
 51    /// <value>
 52    /// The content of the line.
 53    /// </value>
 133054    public string LineContent { get; }
 55
 56    /// <summary>
 57    /// Gets the line coverage by test method.
 58    /// </summary>
 59    /// <value>
 60    /// The line coverage by test method.
 61    /// </value>
 577262    public IDictionary<TestMethod, ShortLineAnalysis> LineCoverageByTestMethod { get; }
 63
 64    /// <summary>
 65    /// Gets the number of covered branches.
 66    /// </summary>
 67    /// <value>
 68    /// The number of covered branches.
 69    /// </value>
 268670    public int? CoveredBranches { get; }
 71
 72    /// <summary>
 73    /// Gets the number of total branches.
 74    /// </summary>
 75    /// <value>
 76    /// The number of total branches.
 77    /// </value>
 5878    public int? TotalBranches { get; }
 79}