commit | bf693efdb346d7b4b753a83ebabb2cef1046ccc5 | [log] [tgz] |
---|---|---|
author | Heschi Kreinick <heschi@google.com> | Wed Oct 10 19:17:04 2018 -0400 |
committer | Heschi Kreinick <heschi@google.com> | Tue Oct 16 19:29:16 2018 +0000 |
tree | e027b0880b8bfc102c43188d7067791a1b5e5cc3 | |
parent | 321fe744f386079338b126dfb02b3ddaaf672926 [diff] |
imports: make tests use a helper, read from disk more Replace the repeated Process/err check/output block with a test helper eliminating a lot of copy/pasting. Change many tests to get their input from disk rather than the argument to Process; this is mostly me being selfish: go/packages doesn't support creating new packages with overlays and that breaks a lot of these tests. Change-Id: Ib1b7908c3d86d17323a94f1ee4ce074e264327b4 Reviewed-on: https://go-review.googlesource.com/c/141680 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.