Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidReport = errors.New("invalid report")
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
Type CounterType `xml:"type,attr"`
Missed int `xml:"missed,attr"`
Covered int `xml:"covered,attr"`
}
type CounterType ¶
type CounterType int
const ( CounterTypeUnknown CounterType = iota CounterTypeInstruction CounterTypeLine CounterTypeComplexity CounterTypeMethod CounterTypeClass )
func (CounterType) String ¶
func (c CounterType) String() string
func (*CounterType) UnmarshalText ¶
func (c *CounterType) UnmarshalText(text []byte) error
type Package ¶
type Package struct {
Name string `xml:"name,attr"`
Counters []Counter `xml:"counter"`
Classes []Class `xml:"class"`
SourceFiles []SourceFile `xml:"sourcefile"`
}
type Report ¶
type Report struct {
// Name is the name of the report.
// This is usually the same as the artifactId or name of the Maven/Gradle project.
Name string `xml:"name,attr"`
Counters []Counter `xml:"counter"`
Packages []Package `xml:"package"`
}
Report is a JaCoCo-specific report.
func ParseReport ¶
type SourceFile ¶
Click to show internal directories.
Click to hide internal directories.