(b *testing.B)
| 647 | } |
| 648 | |
| 649 | func BenchmarkParseBytes(b *testing.B) { |
| 650 | for i := 0; i < b.N; i++ { |
| 651 | _, err := ParseBytes(asBytes) |
| 652 | if err != nil { |
| 653 | b.Fatal(err) |
| 654 | } |
| 655 | } |
| 656 | } |
| 657 | |
| 658 | // parseBytesUnsafe is to benchmark using unsafe. |
| 659 | func parseBytesUnsafe(b []byte) (UUID, error) { |
nothing calls this directly
no test coverage detected