testing: fix benchmark logging output

This commit is contained in:
Damian Gryski
2023-04-09 09:41:15 -07:00
committed by Ron Evans
parent 42175496eb
commit e00a2395d9
2 changed files with 16 additions and 3 deletions
+4
View File
@@ -95,6 +95,10 @@ func (l *logger) WriteTo(w io.Writer) (int64, error) {
}
func (l *logger) Len() int {
return l.b.Len()
}
// Short reports whether the -test.short flag is set.
func Short() bool {
return flagShort