coverage_lens library

Public API for parsing LCOV data and building Coverage Lens reports.

Most users run the coverage_lens executable from the command line. These exports are useful when another Dart tool wants to parse LCOV, merge records, inspect coverage summaries, or render reports programmatically.

Classes

CoverageAnalysisConfig
Options that control coverage analysis and risk highlighting.
CoverageAnalyzer
Converts parsed LCOV records and source text into report models.
CoverageExcludedFile
File skipped by an exclude pattern.
CoverageFile
Coverage analysis result for one source file.
CoverageGroup
Coverage summary for one directory in the source tree.
CoverageLensConfig
Configuration loaded from coverage_lens.yaml or CLI flags.
CoverageLine
Coverage details for a single source line.
CoverageRange
Inclusive range of uncovered executable source lines.
CoverageReport
Complete analyzed coverage report used by HTML and PDF renderers.
CoverageSummary
Aggregate line and branch coverage counters.
FileSystemSourceResolver
Source resolver that reads files from the local file system.
HtmlReportOutput
HTML report document and companion asset files.
HtmlReportRenderer
Renders an analyzed coverage report as static HTML.
HtmlReportRenderOptions
Options that control HTML report rendering.
InMemorySourceResolver
Source resolver backed by an in-memory map.
LcovBranchRecord
LCOV execution count for one branch outcome.
LcovFileRecord
LCOV data for one SF: source file section.
LcovFunctionRecord
LCOV execution count for one function.
LcovLineRecord
LCOV execution count for one source line.
LcovParser
Parser for LCOV trace files.
LcovParseResult
Result of parsing an LCOV document.
LcovParseWarning
Warning emitted while parsing LCOV input.
LcovRecordMerger
Merges records for the same source file by summing hit counts.
SourceIgnoreMap
Line ignore information parsed from Dart coverage comments.
SourceResolver
Reads source text for paths referenced by LCOV records.

Enums

CoverageLineStatus
Coverage state assigned to a source line in a rendered report.