Class ProtoCoverageSummary

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

Aggregated coverage for one target and category, as seen by a Run gate.

public sealed record ProtoCoverageSummary : IEquatable<ProtoCoverageSummary>
Inheritance
ProtoCoverageSummary
Implements
Inherited Members
Extension Methods

Constructors

ProtoCoverageSummary(string, string, int, int)

Aggregated coverage for one target and category, as seen by a Run gate.

public ProtoCoverageSummary(string TargetName, string Category, int Covered, int Total)

Parameters

TargetName string
Category string
Covered int
Total int

Properties

Category

public string Category { get; init; }

Property Value

string

Covered

public int Covered { get; init; }

Property Value

int

Percentage

The covered share, rounded to two decimals exactly as ProtoCoverageTotals prints it.

public double Percentage { get; }

Property Value

double

Ratio

public double Ratio { get; }

Property Value

double

TargetName

public string TargetName { get; init; }

Property Value

string

Total

public int Total { get; init; }

Property Value

int