Help us shape the future of Go! Take the 2026 Go Developer Survey

coverage

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coverage

type Coverage struct {
	FunctionsFound int
	FunctionsHit   int
	BranchesFound  int
	BranchesHit    int
	LinesFound     int
	LinesHit       int
}

type CoverageSummary

type CoverageSummary struct {
	Total *Coverage
	Files []*FileCoverage
}

func ParseLcov

func ParseLcov(report string) *CoverageSummary

ParseLcov takes a lcov tracefile report and turns it into the `CoverageSummary` struct. The parsing is as forgiving as possible. It will output debug/error logs instead of failing, with the goal to gather as much information as possible

func (*CoverageSummary) PrintTable

func (cs *CoverageSummary) PrintTable(writer io.Writer)

type FileCoverage

type FileCoverage struct {
	Filename string
	Coverage *Coverage
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL