parser/gotest: never reset nextID in report builder to ensure unique ids

This commit is contained in:
Joël Stemmer 2022-05-21 23:29:24 +01:00
parent 01f41237f7
commit 6c038bc425

View File

@ -249,8 +249,7 @@ func (b *reportBuilder) CreatePackage(name, result string, duration time.Duratio
pkg.Benchmarks = benchmarks pkg.Benchmarks = benchmarks
b.packages = append(b.packages, pkg) b.packages = append(b.packages, pkg)
// reset state // reset state, except for nextID to ensure all id's are unique.
b.nextID = 1
b.lastID = 0 b.lastID = 0
b.output = nil b.output = nil
b.coverage = 0 b.coverage = 0