code_coverage library

Classes

CodeCoverageExtractor
Component used to generate a CoverageReport for a given package. This is the main class of the package, summarizing all of its funcionality.
CoverageExtractionResult
CoverageReport
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.
CoverageReportFactory
Component used to create a CoverageReport out of a hitmap and package info in a easy way
DartTestRunner
FileCoverageReport
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.
FlutterTestRunner
HitmapReader
Component used to read hitmaps created by the dart test coverage option
ProcessRunner
Wrapper for the Process.start method that reads the stdout and stderr streams and outputs then to the console
TestResult
TestRunner