1
0
mirror of https://github.com/golang/go synced 2024-11-19 07:04:43 -07:00
go/oracle/testdata/src/main
Alan Donovan 99b2441d95 go.tools/oracle: optionally restrict 'callgraph' query to a single package.
If a -pos argument is specified, a 'callgraph' query reports only the
functions within the query package.  This produces a far more manageable
amount of information, and because we don't need to package-qualify the
names, the result is easier to read.

Added tests:
- callgraph query with/without -pos
  (The test driver was extended to allow "nopos" queries.)
- callers and callees queries don't return wrappers

Also, in go/callgraph:
- (*Node).String, (*Edge).String
- (*Graph).DeleteSyntheticNodes eliminates synthetic wrapper functions,
  preserving topology.  Used in all four oracle "call*" queries.
- (*Graph).DeleteNode

LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/66240044
2014-02-21 10:46:02 -05:00
..
callgraph2.go go.tools/oracle: fix minor but confusing bug in test driver. 2013-10-01 10:17:26 -04:00
callgraph2.golden go.tools/oracle: optionally restrict 'callgraph' query to a single package. 2014-02-21 10:46:02 -05:00
callgraph-json.go go.tools/oracle: add option to output results in JSON syntax. 2013-09-03 15:29:02 -04:00
callgraph-json.golden go.tools/oracle: optionally restrict 'callgraph' query to a single package. 2014-02-21 10:46:02 -05:00
callgraph.go go.tools/oracle: optionally restrict 'callgraph' query to a single package. 2014-02-21 10:46:02 -05:00
callgraph.golden go.tools/oracle: optionally restrict 'callgraph' query to a single package. 2014-02-21 10:46:02 -05:00
calls-json.go go.tools/oracle: add option to output results in JSON syntax. 2013-09-03 15:29:02 -04:00
calls-json.golden go.tools/oracle: add option to output results in JSON syntax. 2013-09-03 15:29:02 -04:00
calls.go go.tools/oracle: optionally restrict 'callgraph' query to a single package. 2014-02-21 10:46:02 -05:00
calls.golden go.tools/oracle: optionally restrict 'callgraph' query to a single package. 2014-02-21 10:46:02 -05:00
describe-json.go go.tools/oracle: implements: now shows whole-program implements relation for selected type. 2013-12-13 18:00:55 -05:00
describe-json.golden go.tools/oracle: implements: now shows whole-program implements relation for selected type. 2013-12-13 18:00:55 -05:00
describe.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
describe.golden go.tools/oracle: adjust golden output to new names 2014-01-10 16:05:14 -08:00
freevars.go go.oracle: freevars: don't report free identifiers defined in package scope. 2013-09-12 11:00:22 -04:00
freevars.golden go.tools/oracle: adjust golden output to new names 2014-01-10 16:05:14 -08:00
implements-json.go go.tools/oracle: implements: now shows whole-program implements relation for selected type. 2013-12-13 18:00:55 -05:00
implements-json.golden go.tools/oracle: implements: now shows whole-program implements relation for selected type. 2013-12-13 18:00:55 -05:00
implements.go go.tools/oracle: implements: now shows whole-program implements relation for selected type. 2013-12-13 18:00:55 -05:00
implements.golden go.tools/oracle: implements: now shows whole-program implements relation for selected type. 2013-12-13 18:00:55 -05:00
imports.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
imports.golden go.tools/oracle: adjust golden output to new names 2014-01-10 16:05:14 -08:00
multi.go go.tools/oracle: refactor Oracle API to allow repeated queries on same scope. 2013-09-23 15:02:18 -04:00
peers-json.go go.tools/oracle: add option to output results in JSON syntax. 2013-09-03 15:29:02 -04:00
peers-json.golden go.tools/oracle: add option to output results in JSON syntax. 2013-09-03 15:29:02 -04:00
peers.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
peers.golden go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
pointsto-json.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
pointsto-json.golden go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
pointsto.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
pointsto.golden go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
referrers-json.go go.tools/oracle: new query 'referrers' returns all references to an identifier. 2013-09-10 14:11:42 -04:00
referrers-json.golden go.tools/ssa: record lvalue/rvalue distinction precisely in DebugRef. 2013-10-24 18:31:50 -04:00
reflection.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
reflection.golden go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
what-json.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
what-json.golden go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
what.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
what.golden go.tools/oracle: implements: now shows whole-program implements relation for selected type. 2013-12-13 18:00:55 -05:00