tools/go/callgraph/cha/testdata
Alan Donovan a9651d6ad7 cmd/callgraph: add -algo=static and -algo=cha options.
"static" ignores dynamic calls altogether.

"cha" uses Class Hierarchy Analysis, which assumes that a
dynamic call may dispatch to any func or method that satisfies
the type.

Both these algorithms can work on partial programs,
e.g. libraries without a main function or tests.

(This feature was requested after my talk last night.)

+ Tests.

LGTM=sameer
R=sameer, minux
CC=golang-codereviews, gri
https://golang.org/cl/176780043
2014-11-21 11:07:56 -05:00
..
func.go cmd/callgraph: add -algo=static and -algo=cha options. 2014-11-21 11:07:56 -05:00
iface.go cmd/callgraph: add -algo=static and -algo=cha options. 2014-11-21 11:07:56 -05:00
recv.go cmd/callgraph: add -algo=static and -algo=cha options. 2014-11-21 11:07:56 -05:00