< Summary

Information
Class: DirectSight.Parser.CodeElementBase
Assembly DirectSight
File(s): /home/runner/work/DirectSight/DirectSight/DirectSight/Parser/CodeElementBase.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 11
Coverable lines: 11
Total lines: 44
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%
ToString()100%110%

File(s)

/home/runner/work/DirectSight/DirectSight/DirectSight/Parser/CodeElementBase.cs

#LineLine coverage
 1namespace DirectSight.Parser;
 2
 3/// <summary>
 4/// Temporar class to create <see cref="Analysis.CodeElement"/> once all required information is available.
 5/// </summary>
 6internal class CodeElementBase
 7{
 8    /// <summary>
 9    /// Initializes a new instance of the <see cref="CodeElementBase" /> class.
 10    /// </summary>
 11    /// <param name="name">The name of the method.</param>
 12    /// <param name="firstLine">The first line.</param>
 013    public CodeElementBase(string name, int firstLine)
 014    {
 015        this.Name = name;
 016        this.FirstLine = firstLine;
 017    }
 18
 19    /// <summary>
 20    /// Gets the name of the method.
 21    /// </summary>
 022    public string Name { get; }
 23
 24    /// <summary>
 25    /// Gets the first line.
 26    /// </summary>
 027    public int FirstLine { get; }
 28
 29    /// <summary>
 30    /// Gets or sets a value indicating whether the method has not been executed.
 31    /// </summary>
 032    public bool NotExecuted { get; set; }
 33
 34    /// <summary>
 35    /// Returns a <see cref="string"/> that represents this instance.
 36    /// </summary>
 37    /// <returns>
 38    /// A <see cref="string"/> that represents this instance.
 39    /// </returns>
 40    public override string ToString()
 041    {
 042        return this.Name;
 043    }
 44}