root element rename to testsuite

This commit is contained in:
Erik Brakkee 2024-11-20 21:54:52 +01:00
parent 18d362c926
commit d97ffd7fea
2 changed files with 3 additions and 2 deletions

View File

@ -70,7 +70,8 @@ func main() {
filename := os.Args[1]
var file *os.File
if filename != "-" {
file, err := os.Open(filename)
file2, err := os.Open(filename)
file = file2
if err != nil {
panic(err)
}

View File

@ -8,7 +8,7 @@ import (
)
type Testsuites struct {
XMLName xml.Name `xml:"testsuites"`
XMLName xml.Name `xml:"testsuite"`
Tests int `xml:"tests,attr"`
Failures int `xml:"failures,attr"`