Commit 025134b0 authored by Tobias Klauser's avatar Tobias Klauser Committed by Tobias Klauser

runtime: simplify range expressions in tests

Generated by running gofmt -s on the files in question.

Change-Id: If6578b150e1bfced8657196d2af01f5d36879f93
Reviewed-on: https://go-review.googlesource.com/100135
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 73950831
...@@ -25,7 +25,7 @@ func BenchmarkFastrandHashiter(b *testing.B) { ...@@ -25,7 +25,7 @@ func BenchmarkFastrandHashiter(b *testing.B) {
} }
b.RunParallel(func(pb *testing.PB) { b.RunParallel(func(pb *testing.PB) {
for pb.Next() { for pb.Next() {
for _ = range m { for range m {
break break
} }
} }
......
...@@ -125,7 +125,7 @@ func BenchmarkRuneIterate(b *testing.B) { ...@@ -125,7 +125,7 @@ func BenchmarkRuneIterate(b *testing.B) {
for _, sd := range stringdata { for _, sd := range stringdata {
b.Run(sd.name, func(b *testing.B) { b.Run(sd.name, func(b *testing.B) {
for i := 0; i < b.N; i++ { for i := 0; i < b.N; i++ {
for _ = range sd.data { for range sd.data {
} }
} }
}) })
...@@ -135,7 +135,7 @@ func BenchmarkRuneIterate(b *testing.B) { ...@@ -135,7 +135,7 @@ func BenchmarkRuneIterate(b *testing.B) {
for _, sd := range stringdata { for _, sd := range stringdata {
b.Run(sd.name, func(b *testing.B) { b.Run(sd.name, func(b *testing.B) {
for i := 0; i < b.N; i++ { for i := 0; i < b.N; i++ {
for _, _ = range sd.data { for range sd.data {
} }
} }
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment