Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for dest (0.15 sec)

  1. cmd/jwt_test.go

    				},
    			},
    			expectedErr: errAuthentication,
    		},
    	}
    
    	for i, testCase := range testCases {
    		_, _, _, gotErr := metricsRequestAuthenticate(testCase.req)
    		if testCase.expectedErr != gotErr {
    			t.Errorf("Test %d, expected err %s, got %s", i+1, testCase.expectedErr, gotErr)
    		}
    	}
    }
    
    func BenchmarkParseJWTStandardClaims(b *testing.B) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  2. internal/config/identity/openid/jwt_test.go

    		}
    		d, err := GetDefaultExpiration(u.Query().Get("DurationSeconds"))
    		gotErr := (err != nil)
    		if testCase.expectErr != gotErr {
    			t.Errorf("Test %d: Expected %v, got %v with error %s", i+1, testCase.expectErr, gotErr, err)
    		}
    		if d != testCase.duration {
    			t.Errorf("Test %d: Expected duration %d, got %d", i+1, testCase.duration, d)
    		}
    	}
    }
    
    func TestExpCorrect(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.3K bytes
    - Viewed (0)
Back to top