ory-am/hydra

View on GitHub
jwk/manager_test_helpers.go

Summary

Maintainability
A
1 hr
Test Coverage

Function TestHelperManagerKey has 57 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestHelperManagerKey(m Manager, algo string, keys *jose.JSONWebKeySet, suffix string) func(t *testing.T) {
    priv := canonicalizeThumbprints(keys.Key(suffix))
    var pub []jose.JSONWebKey
    for _, k := range priv {
        pub = append(pub, canonicalizeThumbprints([]jose.JSONWebKey{k.Public()})...)
Severity: Minor
Found in jwk/manager_test_helpers.go - About 1 hr to fix

    Function TestHelperManagerKeySet has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func TestHelperManagerKeySet(m Manager, algo string, keys *jose.JSONWebKeySet, suffix string, parallel bool) func(t *testing.T) {
    Severity: Minor
    Found in jwk/manager_test_helpers.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status