jwk/manager_test_helpers.go
Function TestHelperManagerKey
has 57 lines of code (exceeds 50 allowed). Consider refactoring. Open
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()})...)
Function TestHelperManagerKeySet
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func TestHelperManagerKeySet(m Manager, algo string, keys *jose.JSONWebKeySet, suffix string, parallel bool) func(t *testing.T) {