Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/packages: in overlay_test, allow test variant in second_file case
When CL 241577 lands, 'go list -e' will include unparseable files (like a file without a package declaration) in GoFiles in addition to InvalidGoFiles. This makes go/packages more tolerant of empty test files. With CL 241577, if a file=src.go query is given when an empty _test.go is present, packages.Load will return two matching packages: the library under test, and the internal test package. This CL broadens overlay_test.go so the new behavior doesn't break the test. For golang/go#39986 Change-Id: I14d019129465e928a3f60a2230edd2e2d1d74687 Reviewed-on: https://go-review.googlesource.com/c/tools/+/317409 Trust: Jay Conrod <[email protected]> Run-TryBot: Jay Conrod <[email protected]> TryBot-Result: Go Bot <[email protected]> gopls-CI: kokoro <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
- Loading branch information