ory-am/hydra

View on GitHub
client/validator_test.go

Summary

Maintainability
B
6 hrs
Test Coverage

Function TestValidate has 139 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestValidate(t *testing.T) {
    ctx := context.Background()
    c := internal.NewConfigurationWithDefaults()
    c.MustSet(ctx, config.KeySubjectTypesSupported, []string{"pairwise", "public"})
    c.MustSet(ctx, config.KeyDefaultClientScope, []string{"openid"})
Severity: Major
Found in client/validator_test.go - About 4 hrs to fix

    Function TestValidateDynamicRegistration has 66 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func TestValidateDynamicRegistration(t *testing.T) {
        ctx := context.Background()
        c := internal.NewConfigurationWithDefaults()
        c.MustSet(ctx, config.KeySubjectTypesSupported, []string{"pairwise", "public"})
        c.MustSet(ctx, config.KeyDefaultClientScope, []string{"openid"})
    Severity: Minor
    Found in client/validator_test.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status