(b *testing.B)
| 744 | } |
| 745 | |
| 746 | func BenchmarkUUID_New(b *testing.B) { |
| 747 | b.RunParallel(func(pb *testing.PB) { |
| 748 | for pb.Next() { |
| 749 | _, err := NewRandom() |
| 750 | if err != nil { |
| 751 | b.Fatal(err) |
| 752 | } |
| 753 | } |
| 754 | }) |
| 755 | } |
| 756 | |
| 757 | func BenchmarkUUID_NewPooled(b *testing.B) { |
| 758 | EnableRandPool() |
nothing calls this directly
no test coverage detected