(b *testing.B)
| 661 | } |
| 662 | |
| 663 | func BenchmarkParseBytesUnsafe(b *testing.B) { |
| 664 | for i := 0; i < b.N; i++ { |
| 665 | _, err := parseBytesUnsafe(asBytes) |
| 666 | if err != nil { |
| 667 | b.Fatal(err) |
| 668 | } |
| 669 | } |
| 670 | } |
| 671 | |
| 672 | // parseBytesCopy is to benchmark not using unsafe. |
| 673 | func parseBytesCopy(b []byte) (UUID, error) { |
nothing calls this directly
no test coverage detected