From bc77922d476b478303b92699a6f6b814e4893bdd Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Mon, 4 Aug 2025 10:28:01 +0200 Subject: [PATCH] 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). --- src/testing/benchmark.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/testing/benchmark.go b/src/testing/benchmark.go index 53c7fc7b1..2dc59b72f 100644 --- a/src/testing/benchmark.go +++ b/src/testing/benchmark.go @@ -500,6 +500,10 @@ func (b *B) RunParallel(body func(*PB)) { return } +func (b *B) Loop() bool { + panic("unimplemented: testing.B.Loop") +} + // Benchmark benchmarks a single function. It is useful for creating // custom benchmarks that do not use the "go test" command. //