codeclimate/test-reporter

View on GitHub
formatters/clover/xml.go

Summary

Maintainability
A
0 mins
Test Coverage
package clover

import "encoding/xml"

type xmlFile struct {
    Name  string `xml:"name,attr"`
    Path  string `xml:"path,attr"`
    Lines []struct {
        Num   int `xml:"num,attr"`
        Count int `xml:"count,attr"`
    } `xml:"line"`
}

type xmlClover struct {
    XMLName  xml.Name `xml:"coverage"`
    Packages []struct {
        Name  string    `xml:"name,attr"`
        Files []xmlFile `xml:"file"`
    } `xml:"project>package"`
    Files []xmlFile `xml:"project>file"`
}