(b *testing.B)
| 755 | } |
| 756 | |
| 757 | func BenchmarkUUID_NewPooled(b *testing.B) { |
| 758 | EnableRandPool() |
| 759 | b.RunParallel(func(pb *testing.PB) { |
| 760 | for pb.Next() { |
| 761 | _, err := NewRandom() |
| 762 | if err != nil { |
| 763 | b.Fatal(err) |
| 764 | } |
| 765 | } |
| 766 | }) |
| 767 | } |
| 768 | |
| 769 | func BenchmarkUUIDs_Strings(b *testing.B) { |
| 770 | uuid1, err := Parse("f47ac10b-58cc-0372-8567-0e02b2c3d479") |
nothing calls this directly
no test coverage detected