Documentation ¶
Index ¶
- func ComputeSummaries(files []*codecoverage.File) ([]*codecoverage.GroupCoverageSummary, []*codecoverage.Metric)
- func ConvertFiles(export *llvm.Export, base string, mapping *DiffMapping) ([]*codecoverage.File, error)
- func SaveReport(files []*codecoverage.File, shardSize int, dir string) (*codecoverage.CoverageReport, error)
- type DiffMapping
- type LineMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeSummaries ¶
func ComputeSummaries(files []*codecoverage.File) ([]*codecoverage.GroupCoverageSummary, []*codecoverage.Metric)
ComputeSummaries calculates aggregate summaries for all directories.
func ConvertFiles ¶
func ConvertFiles(export *llvm.Export, base string, mapping *DiffMapping) ([]*codecoverage.File, error)
ConvertFiles converts the data in LLVM coverage JSON format into the compressed coverage format used by Chromium coverage service.
func SaveReport ¶
func SaveReport(files []*codecoverage.File, shardSize int, dir string) (*codecoverage.CoverageReport, error)
SaveReport saves compresses coverage data to disk, optionally sharding the data into multiple files each of the same size.
Types ¶
type DiffMapping ¶
type DiffMapping map[string]LineMapping
DiffMapping represents a source transformation done by a diff (i.e. patch), where for each file it has a mapping from the old line number to the new one.
type LineMapping ¶
LineMapping maps the old line number to the new one within a single file.
Click to show internal directories.
Click to hide internal directories.