Skip to content

Commit

Permalink
fix copyloopvar
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Sarvarov committed Oct 11, 2024
1 parent d78eb16 commit a320702
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 28 deletions.
10 changes: 0 additions & 10 deletions context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ func Test_TemplateDataFromContext(t *testing.T) {
},
}
for _, tt := range tests {
tt := tt

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

Expand Down Expand Up @@ -237,8 +235,6 @@ func Test_PropsFromContext(t *testing.T) {
},
}
for _, tt := range tests {
tt := tt

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

Expand Down Expand Up @@ -404,8 +400,6 @@ func Test_ValidationErrorsFromContext(t *testing.T) {
},
}
for _, tt := range tests {
tt := tt

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

Expand Down Expand Up @@ -466,8 +460,6 @@ func Test_EncryptHistoryFromContext(t *testing.T) {
},
}
for _, tt := range tests {
tt := tt

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

Expand Down Expand Up @@ -528,8 +520,6 @@ func Test_ClearHistoryFromContext(t *testing.T) {
},
}
for _, tt := range tests {
tt := tt

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

Expand Down
2 changes: 0 additions & 2 deletions http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ func TestIsInertiaRequest(t *testing.T) {
},
}
for _, tt := range tests {
tt := tt

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

Expand Down
10 changes: 0 additions & 10 deletions inertia_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ func TestInertia_ShareProp(t *testing.T) {
}

for _, tt := range tests {
tt := tt

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

Expand Down Expand Up @@ -148,8 +146,6 @@ func TestInertia_SharedProps(t *testing.T) {
}

for _, tt := range tests {
tt := tt

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

Expand Down Expand Up @@ -207,8 +203,6 @@ func TestInertia_SharedProp(t *testing.T) {
}

for _, tt := range tests {
tt := tt

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

Expand Down Expand Up @@ -262,8 +256,6 @@ func TestInertia_ShareTemplateData(t *testing.T) {
}

for _, tt := range tests {
tt := tt

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

Expand Down Expand Up @@ -314,8 +306,6 @@ func TestInertia_ShareTemplateFunc(t *testing.T) {
}

for _, tt := range tests {
tt := tt

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

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

for _, method := range []string{http.MethodPut, http.MethodPatch, http.MethodDelete} {
method := method

t.Run(method+" cannot have 302 status", func(t *testing.T) {
t.Parallel()

Expand Down
4 changes: 0 additions & 4 deletions utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ func Test_firstOr(t *testing.T) {
},
}
for _, tt := range tests {
tt := tt

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

Expand Down Expand Up @@ -134,8 +132,6 @@ func Test_md5(t *testing.T) {
},
}
for _, tt := range tests {
tt := tt

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

Expand Down

0 comments on commit a320702

Please sign in to comment.