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 9f9b7e3 commit f111c72Copy full SHA for f111c72
go/callgraph/rta/rta_test.go
@@ -23,6 +23,7 @@ import (
23
"golang.org/x/tools/go/ssa"
24
"golang.org/x/tools/go/ssa/ssautil"
25
"golang.org/x/tools/internal/aliases"
26
+ "golang.org/x/tools/internal/testenv"
27
"golang.org/x/tools/internal/testfiles"
28
"golang.org/x/tools/txtar"
29
)
@@ -85,6 +86,8 @@ func TestRTA(t *testing.T) {
85
86
87
// loadPackages unpacks the archive to a temporary directory and loads all packages within it.
88
func loadPackages(t *testing.T, archive string) []*packages.Package {
89
+ testenv.NeedsGoPackages(t)
90
+
91
ar, err := txtar.ParseFile(archive)
92
if err != nil {
93
t.Fatal(err)
0 commit comments