Skip to content

Commit

Permalink
refactor: Removing useless shadowing
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Apr 3, 2024
1 parent b145b21 commit 678e903
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 54 deletions.
2 changes: 0 additions & 2 deletions pkg/argon/argon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ func TestCompareHashAndPassowrd(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down
6 changes: 0 additions & 6 deletions pkg/ident/basic/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ func TestIsMatching(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -126,8 +124,6 @@ func TestGetUser(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -193,8 +189,6 @@ func TestOnError(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down
8 changes: 0 additions & 8 deletions pkg/middleware/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ func TestMiddleware(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -149,8 +147,6 @@ func TestIsAuthenticated(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -205,8 +201,6 @@ func TestIsAuthorized(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -251,8 +245,6 @@ func TestOnHandlerFail(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down
4 changes: 0 additions & 4 deletions pkg/model/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ func TestNewUser(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -72,8 +70,6 @@ func TestReadUser(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down
10 changes: 0 additions & 10 deletions pkg/service/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ func TestGet(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -157,8 +155,6 @@ func TestCreate(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -229,8 +225,6 @@ func TestUpdate(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -301,8 +295,6 @@ func TestDelete(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -469,8 +461,6 @@ func TestCheck(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down
10 changes: 0 additions & 10 deletions pkg/store/db/crud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ func TestGet(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -105,8 +103,6 @@ func TestCreate(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -164,8 +160,6 @@ func TestUpdate(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -221,8 +215,6 @@ func TestUpdatePassword(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -277,8 +269,6 @@ func TestDelete(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down
4 changes: 0 additions & 4 deletions pkg/store/db/login_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ func TestLogin(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -138,8 +136,6 @@ func TestIsAuthorized(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down
4 changes: 0 additions & 4 deletions pkg/store/memory/login_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ func TestLogin(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -154,8 +152,6 @@ func TestIsAuthorized(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down
6 changes: 0 additions & 6 deletions pkg/store/memory/memory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ func TestFlags(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -98,8 +96,6 @@ func TestLoadIdent(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -168,8 +164,6 @@ func TestLoadAuth(t *testing.T) {
}

for intention, testCase := range cases {
intention, testCase := intention, testCase

t.Run(intention, func(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit 678e903

Please sign in to comment.