(b *testing.B)
| 433 | } |
| 434 | |
| 435 | func BenchmarkParsePublicKey(b *testing.B) { |
| 436 | b.Log(b.Name()) |
| 437 | buffer := pub.Serialize() |
| 438 | |
| 439 | b.ReportAllocs() |
| 440 | b.ResetTimer() |
| 441 | for i := 0; i < b.N; i++ { |
| 442 | _, err := ParsePubKey(buffer) |
| 443 | |
| 444 | if err != nil { |
| 445 | b.Fatalf("error occurred: %v", err) |
| 446 | } |
| 447 | } |
| 448 | } |
| 449 | |
| 450 | func BenchmarkSignatureSerialization(b *testing.B) { |
| 451 | b.Log(b.Name()) |
nothing calls this directly
no test coverage detected