mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-05 13:32:54 -05:00
parser/gotest: Fix output trimming
This commit is contained in:
@ -126,7 +126,9 @@ func (p *parser) benchmark(name, iterations, nsPerOp, mbPerSec, bytesPerOp, allo
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *parser) output(line string) {
|
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 {
|
func parseSeconds(s string) time.Duration {
|
||||||
|
Reference in New Issue
Block a user