1
0
mirror of https://github.com/jstemmer/go-junit-report.git synced 2025-04-09 15:18:08 -05:00

parser/gotest: Fix output trimming

This commit is contained in:
Joël Stemmer 2019-10-06 19:13:15 +01:00
parent 1563e51b7c
commit 08a21eb096

@ -126,7 +126,9 @@ func (p *parser) benchmark(name, iterations, nsPerOp, mbPerSec, bytesPerOp, allo
}
func (p *parser) output(line string) {
p.add(gtr.Event{Type: "output", Data: strings.TrimPrefix(line, "\t")})
line = strings.TrimPrefix(line, " ")
line = strings.TrimPrefix(line, "\t")
p.add(gtr.Event{Type: "output", Data: line})
}
func parseSeconds(s string) time.Duration {