@@ -54,7 +54,6 @@ func TestContainsInt(t *testing.T) {
5454 }
5555
5656 for _ , testCase := range testCases {
57- testCase := testCase
5857 t .Run (testCase .name , func (t * testing.T ) {
5958 t .Parallel ()
6059 assert .Equal (t , testCase .expect , Contains (testCase .input , testCase .element ))
@@ -104,7 +103,6 @@ func TestContainsUint(t *testing.T) {
104103 }
105104
106105 for _ , testCase := range testCases {
107- testCase := testCase
108106 t .Run (testCase .name , func (t * testing.T ) {
109107 t .Parallel ()
110108 assert .Equal (t , testCase .expect , Contains (testCase .input , testCase .element ))
@@ -154,7 +152,6 @@ func TestContainsFloat32(t *testing.T) {
154152 }
155153
156154 for _ , testCase := range testCases {
157- testCase := testCase
158155 t .Run (testCase .name , func (t * testing.T ) {
159156 t .Parallel ()
160157 assert .Equal (t , testCase .expect , Contains (testCase .input , testCase .element ))
@@ -204,7 +201,6 @@ func TestContainsFloat64(t *testing.T) {
204201 }
205202
206203 for _ , testCase := range testCases {
207- testCase := testCase
208204 t .Run (testCase .name , func (t * testing.T ) {
209205 t .Parallel ()
210206 assert .Equal (t , testCase .expect , Contains (testCase .input , testCase .element ))
@@ -260,7 +256,6 @@ func TestContainsSliceString(t *testing.T) {
260256 }
261257
262258 for _ , testCase := range testCases {
263- testCase := testCase
264259 t .Run (testCase .name , func (t * testing.T ) {
265260 t .Parallel ()
266261 assert .Equal (t , testCase .expect , Contains (testCase .input , testCase .element ))
@@ -321,7 +316,6 @@ func TestContainsMapString(t *testing.T) {
321316 }
322317
323318 for _ , testCase := range testCases {
324- testCase := testCase
325319 t .Run (testCase .name , func (t * testing.T ) {
326320 t .Parallel ()
327321 assert .Equal (t , testCase .expect , Contains (testCase .input , testCase .element ))
@@ -365,7 +359,6 @@ func TestContainsString(t *testing.T) {
365359 }
366360
367361 for _ , testCase := range testCases {
368- testCase := testCase
369362 t .Run (testCase .name , func (t * testing.T ) {
370363 t .Parallel ()
371364 assert .Equal (t , testCase .expect , Contains (testCase .input , testCase .element ))
0 commit comments