Clean up loop captures in tests (#6592)
* Clean up loop captures * some more
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user