MCPcopy
hub / github.com/golang-jwt/jwt / init

Function init

parser_test.go:71–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69)
70
71func 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
85var jwtTestData = []struct {
86 name string

Callers

nothing calls this directly

Calls 4

LoadRSAPublicKeyFromDiskFunction · 0.92
LoadECPublicKeyFromDiskFunction · 0.92
LoadECPrivateKeyFromDiskFunction · 0.92

Tested by

no test coverage detected