FileCoverageReport class
Representation of a coverage report for a file. This class contains the path of the file inside the lib folder (ex.: lib/test.dart is test.dart) and also a map of the lines covered and how many times each line was covered. There are also some methods to calculate line coverage of the file.
Normally objects of this class will be attached to a CoverageReport and will not be found alone.
Constructors
-
FileCoverageReport({required String fileName, required Map<
int, int> linesCoverage})
Properties
- fileName → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
linesCoverage
→ Map<
int, int> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalLines → int
-
no setter
Methods
-
calculateLineCoveragePercent(
) → double -
calculateLinesCovered(
) → int -
getUncoveredLines(
) → List< int> -
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