Docs · API reference · Motus.Abstractions

CoverageSummary Class#

Aggregated summary across all scripts and stylesheets in a coverage snapshot.

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

Inheritance System.Object → CoverageSummary

Implements System.IEquatable<CoverageSummary>

Constructors#

CoverageSummary(int, int, double, int, int, double) Constructor#

Aggregated summary across all scripts and stylesheets in a coverage snapshot.

public CoverageSummary(int TotalLines, int CoveredLines, double LinePercentage, int TotalCssRules, int UsedCssRules, double CssPercentage);

Parameters#

TotalLines System.Int32

Total JS lines across all scripts.

CoveredLines System.Int32

Covered JS lines across all scripts.

LinePercentage System.Double

JS line coverage percentage (0-100).

TotalCssRules System.Int32

Total CSS rules across all stylesheets.

UsedCssRules System.Int32

Used CSS rules across all stylesheets.

CssPercentage System.Double

CSS rule coverage percentage (0-100).

Properties#

CoveredLines Property#

Covered JS lines across all scripts.

public int CoveredLines { get; init; }

Property Value#

System.Int32

CssPercentage Property#

CSS rule coverage percentage (0-100).

public double CssPercentage { get; init; }

Property Value#

System.Double

LinePercentage Property#

JS line coverage percentage (0-100).

public double LinePercentage { get; init; }

Property Value#

System.Double

TotalCssRules Property#

Total CSS rules across all stylesheets.

public int TotalCssRules { get; init; }

Property Value#

System.Int32

TotalLines Property#

Total JS lines across all scripts.

public int TotalLines { get; init; }

Property Value#

System.Int32

UsedCssRules Property#

Used CSS rules across all stylesheets.

public int UsedCssRules { get; init; }

Property Value#

System.Int32