@@ -42,7 +42,6 @@ func init() {
4242 // Load private keys
4343 jwtTestRSAPrivateKey = test .LoadRSAPrivateKeyFromDisk ("test/sample_key" )
4444 jwtTestEC256PrivateKey = test .LoadECPrivateKeyFromDisk ("test/ec256-private.pem" )
45-
4645}
4746
4847var jwtTestData = []struct {
@@ -352,11 +351,9 @@ func signToken(claims jwt.Claims, signingMethod jwt.SigningMethod) string {
352351}
353352
354353func TestParser_Parse (t * testing.T ) {
355-
356354 // Iterate over test data set and run tests
357355 for _ , data := range jwtTestData {
358356 t .Run (data .name , func (t * testing.T ) {
359-
360357 // If the token string is blank, use helper function to generate string
361358 if data .tokenString == "" {
362359 data .tokenString = signToken (data .claims , data .signingMethod )
@@ -428,7 +425,6 @@ func TestParser_Parse(t *testing.T) {
428425}
429426
430427func TestParser_ParseUnverified (t * testing.T ) {
431-
432428 // Iterate over test data set and run tests
433429 for _ , data := range jwtTestData {
434430 // Skip test data, that intentionally contains malformed tokens, as they would lead to an error
@@ -670,13 +666,11 @@ func TestSetPadding(t *testing.T) {
670666 err ,
671667 )
672668 }
673-
674669 })
675670 }
676671}
677672
678673func BenchmarkParseUnverified (b * testing.B ) {
679-
680674 // Iterate over test data set and run tests
681675 for _ , data := range jwtTestData {
682676 // If the token string is blank, use helper function to generate string
0 commit comments