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 6520870 commit e104501Copy full SHA for e104501
gopls/internal/astutil/purge_test.go
@@ -14,11 +14,14 @@ import (
14
15
"golang.org/x/tools/go/packages"
16
"golang.org/x/tools/gopls/internal/astutil"
17
+ "golang.org/x/tools/internal/testenv"
18
)
19
20
// TestPurgeFuncBodies tests PurgeFuncBodies by comparing it against a
21
// (less efficient) reference implementation that purges after parsing.
22
func TestPurgeFuncBodies(t *testing.T) {
23
+ testenv.NeedsGoBuild(t) // we need the source code for std
24
+
25
// Load a few standard packages.
26
config := packages.Config{Mode: packages.NeedCompiledGoFiles}
27
pkgs, err := packages.Load(&config, "encoding/...")
0 commit comments