()
| 69 | ) |
| 70 | |
| 71 | func init() { |
| 72 | // Load public keys |
| 73 | jwtTestDefaultKey = test.LoadRSAPublicKeyFromDisk("test/sample_key.pub") |
| 74 | jwtTestEC256PublicKey = test.LoadECPublicKeyFromDisk("test/ec256-public.pem") |
| 75 | |
| 76 | // Load padded public key - note there is only a public key for this key pair and should only be used for the |
| 77 | // two test cases below. |
| 78 | paddedKey = test.LoadECPublicKeyFromDisk("test/examplePaddedKey-public.pem") |
| 79 | |
| 80 | // Load private keys |
| 81 | jwtTestRSAPrivateKey = test.LoadRSAPrivateKeyFromDisk("test/sample_key") |
| 82 | jwtTestEC256PrivateKey = test.LoadECPrivateKeyFromDisk("test/ec256-private.pem") |
| 83 | } |
| 84 | |
| 85 | var jwtTestData = []struct { |
| 86 | name string |
nothing calls this directly
no test coverage detected