testing: replace spaces with underscores in test/benchmark names, as upstream does

This commit is contained in:
Dan Kegel
2022-01-10 11:16:23 -08:00
committed by Ron Evans
parent f80efa5b8b
commit a888d6245d
3 changed files with 48 additions and 2 deletions
+1 -1
View File
@@ -329,7 +329,7 @@ func (b *B) processBench(ctx *benchContext) {
// least once will not be measured itself and will be called once with N=1.
func (b *B) Run(name string, f func(b *B)) bool {
if b.level > 0 {
name = b.name + "/" + name
name = b.name + "/" + rewrite(name)
}
b.hasSub = true
sub := &B{