Docs · API reference · Motus.Abstractions
CoverageRange Class#
A contiguous byte-offset range within a script source with an associated execution count.
public sealed record CoverageRange : System.IEquatable<Motus.Abstractions.CoverageRange>
Inheritance System.Object → CoverageRange
Implements System.IEquatable<CoverageRange>
Constructors#
CoverageRange(int, int, int) Constructor#
A contiguous byte-offset range within a script source with an associated execution count.
public CoverageRange(int StartOffset, int EndOffset, int Count);
Parameters#
StartOffset System.Int32
Start byte offset (inclusive) within the source text.
EndOffset System.Int32
End byte offset (exclusive) within the source text.
Count System.Int32
Number of times this range was executed. Zero means uncovered.
Properties#
Count Property#
Number of times this range was executed. Zero means uncovered.
public int Count { get; init; }
Property Value#
EndOffset Property#
End byte offset (exclusive) within the source text.
public int EndOffset { get; init; }
Property Value#
StartOffset Property#
Start byte offset (inclusive) within the source text.
public int StartOffset { get; init; }