aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/build_test.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-02-14 19:01:57 +0100
committerTaras Madan <tarasmadan@google.com>2025-02-17 08:18:57 +0000
commit4121cf9df313ee111c01fde1f255d010c8d941cd (patch)
treedcd0d104c8c35997103297dfb7dc1f0de6b77b8e /pkg/build/build_test.go
parent9f05da3db0234203729d2ad179ab5a2f72bf607f (diff)
all: remove loop variables scoping
Diffstat (limited to 'pkg/build/build_test.go')
-rw-r--r--pkg/build/build_test.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/build/build_test.go b/pkg/build/build_test.go
index 6aa9d9216..7491a113c 100644
--- a/pkg/build/build_test.go
+++ b/pkg/build/build_test.go
@@ -17,7 +17,6 @@ import (
func TestCompilerIdentity(t *testing.T) {
t.Parallel()
for _, compiler := range []string{"gcc", "clang", "bazel"} {
- compiler := compiler
t.Run(compiler, func(t *testing.T) {
t.Parallel()
if _, err := exec.LookPath(compiler); err != nil {
@@ -42,7 +41,6 @@ func TestCompilerIdentity(t *testing.T) {
func TestExtractCauseInner(t *testing.T) {
for i, test := range rootCauseTests {
- test := test
t.Run(fmt.Sprint(i), func(t *testing.T) {
reason, file := extractCauseInner([]byte(test.e), test.src)
if test.reason != string(reason) {