(b *testing.B)
| 205 | } |
| 206 | |
| 207 | func BenchmarkRS512Signing(b *testing.B) { |
| 208 | key, _ := os.ReadFile("test/sample_key") |
| 209 | parsedKey, err := jwt.ParseRSAPrivateKeyFromPEM(key) |
| 210 | if err != nil { |
| 211 | b.Fatal(err) |
| 212 | } |
| 213 | |
| 214 | benchmarkSigning(b, jwt.SigningMethodRS512, parsedKey) |
| 215 | } |
nothing calls this directly
no test coverage detected