jacoco

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCoverage

func ParseCoverage(r io.Reader) (float64, error)

ParseCoverage parses a JaCoCo XML report from the given reader and returns the line coverage percentage.

func ParseCoverageFromFile

func ParseCoverageFromFile(path string) (float64, error)

ParseCoverageFromFile reads a JaCoCo XML file and returns the line coverage percentage.

Types

type Counter

type Counter struct {
	Type    string `xml:"type,attr"`
	Missed  int    `xml:"missed,attr"`
	Covered int    `xml:"covered,attr"`
}

type Report

type Report struct {
	XMLName  xml.Name  `xml:"report"`
	Counters []Counter `xml:"counter"`
}

Jump to

Keyboard shortcuts

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