Commit Diff


commit - 2ab61b996485324bf19769c31eb102c665be0551
commit + 84ecb035f84874f8d6cb66c5ee9f287cb5bef52d
blob - 32a206a7539114b54117e7d5acb6bb555a99ea45
blob + a6d39ff1dc59a16bc7d4de2ceb8f7073d265e729
--- parser/cobertura.go
+++ parser/cobertura.go
@@ -16,8 +16,8 @@ type Coverage struct {
 	BranchesCovered int      `xml:"branches-covered,attr,omitempty"`
 	BranchRate      float64  `xml:"branch-rate,attr,omitempty"`
 	Timestamp       int      `xml:"timstamp,attr,omitempty"`
-	Complexity      float64  `xml:complexity,attr,omitempty`
-	Version         int      `xml:version,attr,omitempty`
+	Complexity      float64  `xml:"complexity,attr,omitempty"`
+	Version         int      `xml:"version,attr,omitempty"`
 
 	Sources  []Source  `xml:"source->source"`
 	Packages []Package `xml:"package->package"`
@@ -33,16 +33,16 @@ type Package struct {
 	Name       string   `xml:"name,attr,omitempty"`
 	LineRate   float64  `xml:"line-rate,attr,omitempty"`
 	BranchRate float64  `xml:"branch-rate,attr,omitempty"`
-	Complexity float64  `xml:complexity,attr,omitempty`
+	Complexity float64  `xml:"complexity,attr,omitempty"`
 	Classes    []Class  `xml:"class->class"`
 }
 
 type Class struct {
 	XMLName    xml.Name `xml:"class"`
-	Name       string   `xml:"attr,name,omitempty"`
-	Filename   string   `xml:"attr,filename,omitempty"`
-	LineRate   float64  `xml:"attr,line-rate,omitempty"`
-	BranchRate float64  `xml:"attr,branch-rate,omitempty"`
+	Name       string   `xml:"name,attr,omitempty"`
+	Filename   string   `xml:"filename,attr,omitempty"`
+	LineRate   float64  `xml:"line-rate,attr,omitempty"`
+	BranchRate float64  `xml:"branch-rate,attr,omitempty"`
 	Complexity float64  `xml:"complexity,attr,omitempty"`
 	Methods    []Method `xml:"methods->method"`
 	Lines      []Line   `xml:"lines->line"`