Skip to main content

Module coverage

Module coverage 

Source
Expand description

Coverage-Based Hotpath Weighting

Applies coverage data to weight findings - bugs in uncovered code paths are more suspicious than bugs in well-covered code.

Functions§

apply_coverage_weights
Apply coverage weights to findings in-place.
coverage_adjusted_suspiciousness
Adjust suspiciousness based on coverage.
find_coverage_file
Find the best coverage file from standard locations.
load_coverage_index
Load coverage index from an LCOV file.
lookup_coverage
Look up coverage for a specific file and line.
parse_lcov
Parse LCOV file into a coverage index.

Type Aliases§

CoverageIndex
Coverage index: maps (file, line) to execution count.