In the go build system, test packages and executables do not have a name distinct from the package under test; they are implied, so "go test fmt" means build those packages but "go build fmt" does not. This change adds a Tests boolean option to indicate that implied tests are desired during pattern expansion. It has no effect on build systems that have explicit names for tests, such as Blaze/Bazel. The gopackages diagnostic tool now has a -test flag. Change-Id: I424f343958c4286539e518d5f30067da19a57f3b Reviewed-on: https://go-review.googlesource.com/123775 Reviewed-by: Michael Matloob <matloob@golang.org> |
||
|---|---|---|
| .. | ||
| main.go | ||