ory-am/hydra

View on GitHub
consent/helper_test.go

Summary

Maintainability
C
1 day
Test Coverage

Function TestValidateCsrfSession has 178 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestValidateCsrfSession(t *testing.T) {
    const name = "oauth2_authentication_csrf"

    type cookie struct {
        name      string
Severity: Major
Found in consent/helper_test.go - About 6 hrs to fix

    Function TestCreateCsrfSession has 138 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func TestCreateCsrfSession(t *testing.T) {
        type cookie struct {
            httpOnly bool
            secure   bool
            domain   string
    Severity: Major
    Found in consent/helper_test.go - About 4 hrs to fix

      There are no issues that match your filters.

      Category
      Status