mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-05-20 10:54:28 -05:00
parser/gotest: continue with next item when we find a test or benchmark
This commit is contained in:
parent
0655053883
commit
01f41237f7
@ -234,9 +234,12 @@ func (b *reportBuilder) CreatePackage(name, result string, duration time.Duratio
|
|||||||
for id := 1; id < b.nextID; id++ {
|
for id := 1; id < b.nextID; id++ {
|
||||||
if t, ok := b.tests[id]; ok {
|
if t, ok := b.tests[id]; ok {
|
||||||
tests = append(tests, t)
|
tests = append(tests, t)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if bm, ok := b.benchmarks[id]; ok {
|
if bm, ok := b.benchmarks[id]; ok {
|
||||||
benchmarks = append(benchmarks, bm)
|
benchmarks = append(benchmarks, bm)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user