- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestRunParallelFatal (0.35 sec)
-
src/testing/benchmark_test.go
b.RunParallel(func(pb *testing.PB) { // The function must be able to log/abort // w/o crashing/deadlocking the whole benchmark. b.Log("log") b.Error("error") }) }) } func TestRunParallelFatal(t *testing.T) { testing.Benchmark(func(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() { if b.N > 1 { b.Fatal("error") } } }) }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5.6K bytes - Viewed (0)