1
0
mirror of https://github.com/golang/go synced 2024-10-01 03:08:33 -06:00
go/cmd/guru/testdata/src
Alan Donovan 7fdb908ead cmd/guru: fix tests now that go1.9 go/types returns fake packages
The go1.9 type checker now returns fake packages in addition to an
error if the package was not found at all.  This changes the behavior
of guru in a release-specific way, requiring the test to be split into
a common part and a go1.9-specific part.

In hindsight, perhaps it would have been better to place the
expectation in a comment alongside the query so that they can be
easily enabled or disabled together.  (The downside of that design is
that you can't batch-update all the expectations to match the actual
behavior.)

Change-Id: I58054adec428fbab7fe3c57097aefc827f89a46e
Reviewed-on: https://go-review.googlesource.com/37865
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-03-08 23:16:52 +00:00
..
alias x/tools: simplify and format code 2017-02-28 14:15:42 +00:00
calls cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
calls-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
definition-json cmd/guru: fix tests now that go1.9 go/types returns fake packages 2017-03-08 23:16:52 +00:00
describe cmd/guru: fix tests now that go1.9 go/types returns fake packages 2017-03-08 23:16:52 +00:00
describe-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
freevars cmd/guru: freevars: reenable test of labels (and improve output) 2016-02-12 03:59:51 +00:00
implements cmd/guru: implements: if selected expr is a value, use its type 2016-04-28 14:33:14 +00:00
implements-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
implements-methods cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
implements-methods-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
imports cmd/guru: describe Go 1.8 aliases 2016-11-03 21:55:02 +00:00
lib cmd/guru: describe: show selectable fields when describing a type 2016-02-12 23:35:49 +00:00
main cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00
peers x/tools: simplify and format code 2017-02-28 14:15:42 +00:00
peers-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
pointsto cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
pointsto-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
referrers cmd/guru: show correct definition for embedded type. 2016-08-24 12:03:13 +00:00
referrers-json cmd/guru: fix tests now that go1.9 go/types returns fake packages 2017-03-08 23:16:52 +00:00
reflection cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
softerrs cmd/guru: add workaround to handle inconsistency between go/types and gc 2016-11-23 20:09:00 +00:00
what x/tools/cmd/guru: fix golden files for what query 2017-03-04 20:46:07 +00:00
what-json x/tools/cmd/guru: fix golden files for what query 2017-03-04 20:46:07 +00:00
whicherrs cmd/guru: whicherrs: don't crash on dead code 2016-03-25 16:35:34 +00:00
README.txt cmd/guru: fix nil deref when position is not in Go source 2016-03-07 15:53:42 +00:00

This is not a Go source file.
Used by TestIssue14684.