ory-am/hydra

View on GitHub
health/handler_test.go

Summary

Maintainability
A
1 hr
Test Coverage

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

func TestPublicHealthHandler(t *testing.T) {
    ctx := context.Background()

    doCORSRequest := func(t *testing.T, endpoint string) *http.Response {
        req, err := http.NewRequest(http.MethodGet, endpoint, nil)
Severity: Minor
Found in health/handler_test.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status