go/imports
Heschi Kreinick bf693efdb3 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>
2018-10-16 19:29:16 +00:00
..
fix.go internal/gopathwalk: create 2018-10-12 18:13:39 +00:00
fix_test.go imports: make tests use a helper, read from disk more 2018-10-16 19:29:16 +00:00
imports.go imports: Process should accept nil src 2018-04-12 23:47:31 +00:00
mkindex.go go.tools/imports: move goimports from github to go.tools. 2013-12-17 21:21:03 -05:00
mkstdlib.go imports: update zstdlib to Go 1.11 2018-09-10 04:49:24 +00:00
sortimports.go imports: support repairing import grouping/ordering 2018-10-12 15:41:53 +00:00
zstdlib.go imports: update zstdlib to Go 1.11 2018-09-10 04:49:24 +00:00