| | | 1 | | namespace DirectSight.Parser.Analysis; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Coverage information of a line in a source file. |
| | | 5 | | /// </summary> |
| | | 6 | | public class ShortLineAnalysis |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Initializes a new instance of the <see cref="ShortLineAnalysis" /> class. |
| | | 10 | | /// </summary> |
| | | 11 | | /// <param name="lineVisits">The number of line visits.</param> |
| | | 12 | | /// <param name="lineVisitStatus">The line visit status.</param> |
| | 5066 | 13 | | internal ShortLineAnalysis(int lineVisits, LineVisitStatus lineVisitStatus) |
| | 5066 | 14 | | { |
| | 5066 | 15 | | this.LineVisits = lineVisits; |
| | 5066 | 16 | | this.LineVisitStatus = lineVisitStatus; |
| | 5066 | 17 | | } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// Gets the line visit status. |
| | | 21 | | /// </summary> |
| | 18980 | 22 | | public LineVisitStatus LineVisitStatus { get; } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Gets the number of line visits. |
| | | 26 | | /// </summary> |
| | 1969 | 27 | | public int LineVisits { get; } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Returns a <see cref="string" /> that represents this instance. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <returns> |
| | | 33 | | /// A <see cref="string" /> that represents this instance. |
| | | 34 | | /// </returns> |
| | | 35 | | public override string ToString() |
| | 0 | 36 | | { |
| | 0 | 37 | | return $"{this.LineVisitStatus}: {this.LineVisits}"; |
| | 0 | 38 | | } |
| | | 39 | | } |