ory-am/hydra

View on GitHub
cmd/server/helper_cert_test.go

Summary

Maintainability
A
1 hr
Test Coverage

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

func TestGetOrCreateTLSCertificate(t *testing.T) {
    certPath, keyPath, cert, priv := testhelpers.GenerateTLSCertificateFilesForTests(t)
    logger := logrusx.New("", "")
    logger.Logger.ExitFunc = func(code int) { t.Fatalf("Logger called os.Exit(%v)", code) }
    hook := test.NewLocal(logger.Logger)
Severity: Minor
Found in cmd/server/helper_cert_test.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status