@@ -34,7 +34,6 @@ func TestIndexOf(t *testing.T) {
3434 }
3535
3636 for name , test := range tests {
37- name , test := name , test
3837 t .Run (name , func (t * testing.T ) {
3938 got , err := indexOfFunc ().Call ([]cty.Value {test .input , test .key })
4039 if test .wantErr {
@@ -85,7 +84,6 @@ func TestBasename(t *testing.T) {
8584 }
8685
8786 for name , test := range tests {
88- name , test := name , test
8987 t .Run (name , func (t * testing.T ) {
9088 got , err := basenameFunc ().Call ([]cty.Value {test .input })
9189 if test .wantErr {
@@ -136,7 +134,6 @@ func TestDirname(t *testing.T) {
136134 }
137135
138136 for name , test := range tests {
139- name , test := name , test
140137 t .Run (name , func (t * testing.T ) {
141138 got , err := dirnameFunc ().Call ([]cty.Value {test .input })
142139 if test .wantErr {
@@ -190,7 +187,6 @@ func TestSanitize(t *testing.T) {
190187 }
191188
192189 for name , test := range tests {
193- name , test := name , test
194190 t .Run (name , func (t * testing.T ) {
195191 got , err := sanitizeFunc ().Call ([]cty.Value {test .input })
196192 require .NoError (t , err )
@@ -251,7 +247,6 @@ func TestSemverCmp(t *testing.T) {
251247 },
252248 }
253249 for name , test := range tests {
254- name , test := name , test
255250 t .Run (name , func (t * testing.T ) {
256251 got , err := semvercmpFunc ().Call ([]cty.Value {test .version , test .constraint })
257252 if test .wantErr {
0 commit comments