View definition

(*Config).ImportWithTests

Defined in github.com/golang/tools/go/loader/loader.go

Description

ImportWithTests is a convenience function that adds path to ImportPkgs, the set of initial source packages located relative to $GOPATH. The package will be augmented by any *_test.go files in its directory that contain a "package x" (not "package x_test") declaration.

In addition, if any *_test.go files contain a "package x_test" declaration, an additional package comprising just those files will be added to CreatePkgs.

ImportWithTests is referenced in 18 repositories

github.com/golang/tools github.com/mwhudson/golang-go.tools go.googlesource.com/tools

...