summary

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 10 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

func ParseJacocoXML(in io.Reader) *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(in io.Reader) *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