CoverageReport class Null safety

Representation of a coverage report for a package. This class contains a map of covered files and a list of all package files. There are also some useful methods for calculating total line coverage percent, and also calculate file coverage percent.

CoverageReports are created through a CoverageReportFactory.

Constructors

CoverageReport({required Map<String, FileCoverageReport> coveredFiles, required List<String> packageFiles})

Properties

coveredFiles Map<String, FileCoverageReport>
final
hashCode int
The hash code for this object.
read-onlyinherited
packageFiles List<String>
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

calculateFileCoveragePercent() double
calculateLineCoveragePercent() double
calculateTotalLines() int
calculateTotalLinesCovered() int
getUncoveredFiles() List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited