coverage

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 11 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 ParseJacocoXML added in v0.8.0

func ParseJacocoXML(reportPath string) *CoverageSummary

ParseJacocoXML takes a jacoco xml 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 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