1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:44:48 -07:00
go/imports
Rebecca Stambler cf99646d84 imports: stub out dirPackageInfo function in tests
TestFixImports did not have to explicitly add "strings" to the
simplePkgs map - this only happened because sibling files were searched
and the strings import was found through them. If we stub out the
dirPackageInfo function, we have to explicitly add the strings import.

Change-Id: I149e522fad37039fc790e6a855834d86ff050674
Reviewed-on: https://go-review.googlesource.com/129036
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
2018-08-10 19:55:50 +00:00
..
fix_test.go imports: stub out dirPackageInfo function in tests 2018-08-10 19:55:50 +00:00
fix.go all: fix typos in comments 2018-08-10 18:15:57 +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.10 2018-02-10 03:09:51 +00:00
sortimports.go imports: fix unexpected blank line after package comment 2018-07-09 17:31:08 +00:00
zstdlib.go imports: update zstdlib to Go 1.10 2018-02-10 03:09:51 +00:00