Docs · API reference · Motus.Abstractions

FileCoverageStats Class#

Per-file coverage statistics.

public sealed record FileCoverageStats : System.IEquatable<Motus.Abstractions.FileCoverageStats>

Inheritance System.Object → FileCoverageStats

Implements System.IEquatable<FileCoverageStats>

Constructors#

FileCoverageStats(int, int, double) Constructor#

Per-file coverage statistics.

public FileCoverageStats(int TotalLines, int CoveredLines, double Percentage);

Parameters#

TotalLines System.Int32

Total countable units (lines for scripts, rules for stylesheets).

CoveredLines System.Int32

Number of units that were covered.

Percentage System.Double

Coverage percentage (0-100). Zero if TotalLines is zero.

Properties#

CoveredLines Property#

Number of units that were covered.

public int CoveredLines { get; init; }

Property Value#

System.Int32

Percentage Property#

Coverage percentage (0-100). Zero if TotalLines is zero.

public double Percentage { get; init; }

Property Value#

System.Double

TotalLines Property#

Total countable units (lines for scripts, rules for stylesheets).

public int TotalLines { get; init; }

Property Value#

System.Int32