1
0
mirror of https://github.com/golang/go synced 2024-11-18 22:55:23 -07:00
go/cmd/guru/testdata/src
Alan Donovan 2327a65811 cmd/guru: fix tests
A consequence of CL 19747 was that ad hoc packages of a single filename
are no longer valid -scope arguments, which broke most of the tests.

This CL fixes the tests by extracting the import path from the filename.
The test output now includes the import path, not the package
name, of each of these packages, so the output was updated too.

Also, the -scope argument caused the main package to be imported twice,
once as main.go and once under its import path, causing duplicate
'implements' results.

I'm not sure how I failed to notice this.

Change-Id: I6fb3ae3e1497f0eb8cf88f453660b9e2fd9718d8
Reviewed-on: https://go-review.googlesource.com/19886
Reviewed-by: Michael Matloob <matloob@golang.org>
2016-02-25 22:51:33 +00:00
..
calls cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
calls-json cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
describe cmd/guru: describe: show methods and fields of an expression 2016-02-15 03:46:17 +00:00
describe-json cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00
freevars cmd/guru: freevars: reenable test of labels (and improve output) 2016-02-12 03:59:51 +00:00
implements cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
implements-json cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00
implements-methods cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
implements-methods-json cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
imports cmd/guru: fix tests 2016-02-25 22:51:33 +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 cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
peers-json cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00
pointsto cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
pointsto-json cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00
referrers cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00
referrers-json cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00
reflection cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
what cmd/guru: what: report identifiers equivalent to the selected one 2016-02-20 21:18:35 +00:00
what-json cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00
whicherrs cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00