ory-am/hydra

View on GitHub
client/manager_test_helpers.go

Summary

Maintainability
B
5 hrs
Test Coverage

Function TestHelperCreateGetUpdateDeleteClient has 103 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestHelperCreateGetUpdateDeleteClient(k string, connection *pop.Connection, t1 Storage, t2 Storage) func(t *testing.T) {
    return func(t *testing.T) {
        ctx := context.Background()
        _, err := t1.GetClient(ctx, "1234")
        require.Error(t, err)
Severity: Major
Found in client/manager_test_helpers.go - About 3 hrs to fix

    Function TestHelperCreateGetUpdateDeleteClientNext has 83 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func TestHelperCreateGetUpdateDeleteClientNext(t *testing.T, m Storage, networks []uuid.UUID) {
        ctx := context.Background()
    
        resources := map[uuid.UUID][]Client{}
        for k := range networks {
    Severity: Major
    Found in client/manager_test_helpers.go - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status