Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Class ¶
type Class struct {
Methods Methods `xml:"methods"`
Name string `xml:"name,attr"`
Filename string `xml:"filename,attr"`
Lines []Line `xml:"lines>line"`
LineRate float64 `xml:"line-rate,attr"`
BranchRate float64 `xml:"branch-rate,attr"`
Complexity float64 `xml:"complexity,attr"`
}
Class represents a <class> element, corresponding to a single Go source file.
type Coverage ¶
type Coverage struct {
XMLName xml.Name `xml:"coverage"`
Version string `xml:"version,attr"`
Sources Sources `xml:"sources"`
Packages []Package `xml:"packages>package"`
LineRate float64 `xml:"line-rate,attr"`
BranchRate float64 `xml:"branch-rate,attr"`
LinesValid int `xml:"lines-valid,attr"`
LinesCovered int `xml:"lines-covered,attr"`
BranchesValid int `xml:"branches-valid,attr"`
BranchesCovered int `xml:"branches-covered,attr"`
Complexity float64 `xml:"complexity,attr"`
Timestamp int64 `xml:"timestamp,attr"`
}
Coverage represents the root <coverage> element of a Cobertura XML document.
type Line ¶
type Line struct {
Number int `xml:"number,attr"`
Hits int `xml:"hits,attr"`
Branch bool `xml:"branch,attr"`
}
Line represents a <line> element.
type Methods ¶
type Methods struct{}
Methods represents the <methods/> element. Always empty because Go coverage profiles do not include method-level information.
Click to show internal directories.
Click to hide internal directories.