parseBytesUnsafe is to benchmark using unsafe.
(b []byte)
| 657 | |
| 658 | // parseBytesUnsafe is to benchmark using unsafe. |
| 659 | func parseBytesUnsafe(b []byte) (UUID, error) { |
| 660 | return Parse(*(*string)(unsafe.Pointer(&b))) |
| 661 | } |
| 662 | |
| 663 | func BenchmarkParseBytesUnsafe(b *testing.B) { |
| 664 | for i := 0; i < b.N; i++ { |
no test coverage detected