jacoco

package
v0.0.0-...-b83e1b1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoverageData

type CoverageData struct {
	MissedInstructionCount  int `xml:"mi,attr"`
	CoveredInstructionCount int `xml:"ci,attr"`
}

type DefaultLoader

type DefaultLoader struct {
	// contains filtered or unexported fields
}

func NewReportLoader

func NewReportLoader() *DefaultLoader

func (*DefaultLoader) Load

func (l *DefaultLoader) Load(coverageFile string) (coverage.Report, error)

type Line

type Line struct {
	XMLName xml.Name `xml:"line"`

	CoverageData
	LineNumber int `xml:"nr,attr"`
}

type Package

type Package struct {
	XMLName xml.Name `xml:"package"`

	RelativeName string       `xml:"name,attr"`
	SourceFiles  []SourceFile `xml:"sourcefile"`
}

func (Package) GetCoverageData

func (p Package) GetCoverageData(fileName string, lineNumber int) (*domain.CoverageData, bool)

type Report

type Report struct {
	XMLName xml.Name `xml:"report"`

	Packages []Package `xml:"package"`
}

func (*Report) GetCoverageData

func (r *Report) GetCoverageData(_ string, _ string, pkg string, fileName string, lineNumber int) (*domain.CoverageData, bool)

type SourceFile

type SourceFile struct {
	XMLName xml.Name `xml:"sourcefile"`

	RelativeName string `xml:"name,attr"`
	Lines        []Line `xml:"line"`
}

func (SourceFile) GetCoverageData

func (f SourceFile) GetCoverageData(lineNumber int) (*domain.CoverageData, bool)

Jump to

Keyboard shortcuts

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