Clean up loop captures in tests (#6592)

* Clean up loop captures

* some more
This commit is contained in:
Anton Averchenkov authored and GitHub committed 2026-05-01 12:34:33 -04:00
1 parent acc7d629c8
commit 5e6c9eecbe
110 files changed
-284

No files matched your search

@@ -149,7 +149,6 @@ var testCases = []testCase{
func TestPatchStruct(t *testing.T) {
for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
require := require.New(t)
dst, src := mustStruct(tc.dst), mustStruct(tc.src)
@@ -177,7 +176,6 @@ func TestPatchStruct(t *testing.T) {
func TestPatchBytes(t *testing.T) {
for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
require := require.New(t)
dst, src := mustMarshal(tc.dst), mustMarshal(tc.src)