We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c8e684 commit 1602103Copy full SHA for 1602103
internal/refactor/inline/inline_test.go
@@ -45,6 +45,12 @@ func TestData(t *testing.T) {
45
t.Run(filepath.Base(file), func(t *testing.T) {
46
t.Parallel()
47
48
+ // The few tests that use cgo should be in
49
+ // files whose name includes "cgo".
50
+ if strings.Contains(t.Name(), "cgo") {
51
+ testenv.NeedsTool(t, "cgo")
52
+ }
53
+
54
// Extract archive to temporary tree.
55
ar, err := txtar.ParseFile(file)
56
if err != nil {
0 commit comments