CoverageReport class
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.
no setterinherited
-
packageFiles
→ List<
String> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
calculateFileCoveragePercent(
) → double -
calculateLineCoveragePercent(
) → double -
calculateTotalLines(
) → int -
calculateTotalLinesCovered(
) → int -
getUncoveredFiles(
) → List< String> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited