Documentation
¶
Overview ¶
Package writer writes xml file based on the cobertura dtd: https://github.com/cobertura/cobertura/blob/master/cobertura/src/test/resources/dtds/coverage-04.dtd
Index ¶
- func WriteTextFMT(project *entity.Project, outPath string) error
- func WriteXML(path string, project *entity.Project, outPath string) error
- type Class
- type Classes
- type Condition
- type Conditions
- type Coverage
- type Line
- type Lines
- type Method
- type Methods
- type Package
- type Packages
- type Source
- type Sources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conditions ¶
type Conditions struct {
Methods []*Condition `xml:"condition"`
}
type Coverage ¶
type Coverage struct {
XMLName xml.Name `xml:"coverage"`
Sources *Sources `xml:"sources"`
Packages *Packages `xml:"packages"`
LineRate string `xml:"line-rate,attr"`
BranchRate string `xml:"branch-rate,attr"`
LinesCovered string `xml:"lines-covered,attr"`
LinesValid string `xml:"lines-valid,attr"`
BranchesCovered string `xml:"branches-covered,attr"`
BranchesValid string `xml:"branches-valid,attr"`
Complexity string `xml:"complexity,attr"`
Version string `xml:"version,attr"`
Timestamp string `xml:"timestamp,attr"`
}
type Line ¶
type Line struct {
Conditions *Conditions `xml:"conditions"`
Number string `xml:"number,attr"`
Hits string `xml:"hits,attr"`
Branch string `xml:"branch,attr"`
ConditionCoverage string `xml:"condition-coverage,attr"`
}
Click to show internal directories.
Click to hide internal directories.