Skip to content

Commit 9f0827b

Browse files
aykevldeadprogram
authored andcommitted
testing: stub out testing.B.Loop
This gets the path package tests to pass, so we can move ahead with Go 1.25. It should be implemented in the future at some point (that, or we'll use the upstream testing package instead).
1 parent 613f008 commit 9f0827b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/testing/benchmark.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,10 @@ func (b *B) RunParallel(body func(*PB)) {
500500
return
501501
}
502502

503+
func (b *B) Loop() bool {
504+
panic("unimplemented: testing.B.Loop")
505+
}
506+
503507
// Benchmark benchmarks a single function. It is useful for creating
504508
// custom benchmarks that do not use the "go test" command.
505509
//

0 commit comments

Comments
 (0)