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
@@ -211,7 +211,7 @@ func (t *T) Run(name string, f func(t *T)) bool {
// Create a subtest.
sub := T{
common: common{
name: t.name + "/" + name,
name: t.name + "/" + rewrite(name),
indent: t.indent + " ",
},
}