From 4121cf9df313ee111c01fde1f255d010c8d941cd Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Fri, 14 Feb 2025 19:01:57 +0100 Subject: all: remove loop variables scoping --- pkg/compiler/compiler_test.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'pkg/compiler/compiler_test.go') diff --git a/pkg/compiler/compiler_test.go b/pkg/compiler/compiler_test.go index 711567163..cd82b4650 100644 --- a/pkg/compiler/compiler_test.go +++ b/pkg/compiler/compiler_test.go @@ -23,7 +23,6 @@ var flagUpdate = flag.Bool("update", false, "reformat all.txt") func TestCompileAll(t *testing.T) { for os, arches := range targets.List { - os, arches := os, arches t.Run(os, func(t *testing.T) { t.Parallel() eh := func(pos ast.Pos, msg string) { @@ -35,7 +34,6 @@ func TestCompileAll(t *testing.T) { t.Fatalf("parsing failed") } for arch, target := range arches { - arch, target := arch, target t.Run(arch, func(t *testing.T) { t.Parallel() errors := new(bytes.Buffer) @@ -68,7 +66,6 @@ func TestData(t *testing.T) { // Because of this we have one file per phase. for _, name := range []string{"errors.txt", "errors2.txt", "errors3.txt", "warnings.txt", "all.txt"} { for _, arch := range []string{targets.TestArch32, targets.TestArch64} { - name, arch := name, arch t.Run(fmt.Sprintf("%v/%v", name, arch), func(t *testing.T) { t.Parallel() target := targets.List[targets.TestOS][arch] -- cgit mrf-deployment