- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkFunc (0.39 sec)
-
src/runtime/symtab_test.go
t.Errorf("frames.Next() got %+v want %+v", frame.Func, f) } } func BenchmarkFunc(b *testing.B) { pc, _, _, ok := runtime.Caller(0) if !ok { b.Fatal("failed to look up PC") } f := runtime.FuncForPC(pc) b.Run("Name", func(b *testing.B) { for i := 0; i < b.N; i++ { name := f.Name() if name != "runtime_test.BenchmarkFunc" { b.Fatalf("unexpected name %q", name) } } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 17 21:46:33 UTC 2022 - 7.5K bytes - Viewed (0)