1
0
mirror of https://github.com/golang/go synced 2024-11-18 08:54:45 -07:00
go/cmd
Jean de Klerk fefcef05ab digraph: refactor allpaths to print an adjacency list
Refactors allpaths to print an adjacency list from "from" to "to", instead of
just the nodes. This allows other tools like modgraphviz to print the subgraph.
For example, the following command:

    cd $GOPATH/src/cloud.google.com/go && \
    go mod graph | \
    digraph allpaths cloud.google.com/go golang.org/x/text@v0.3.2 | \
    modgraphviz | \
    dot -Tpng -o graph.png

Generates the following graph.png: https://user-images.githubusercontent.com/3584893/60481727-df0a8680-9c4b-11e9-8df9-c581d599edd1.png

Also splits out the allpaths tests into their own test, and adds many test
cases.

This is a breaking change. The previous behavior returned vertices; now it
returns edges. If you relied on the previous behavior, use:

    my-application | digraph allpaths <from> <to> | digraph nodes

Change-Id: I2eb7c377f5fe1e1e90c5b74eaa78d5211192bb2a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/184337
Reviewed-by: Alan Donovan <adonovan@google.com>
2019-07-16 02:13:16 +00:00
..
auth cmd/auth/cookieauth: add a GOAUTH implementation that reads from a cookiefile 2019-04-05 18:06:40 +00:00
benchcmp
bundle cmd/bundle: change the behavior of the -underscore flag 2018-12-01 03:58:26 +00:00
callgraph go/ssa/ssautil: add AllPackages method 2018-10-15 18:41:29 +00:00
compilebench compilebench: handle missing MemStats more gracefully 2019-05-09 00:13:10 +00:00
cover cmd/cover: check os.Create error im html output 2017-01-08 00:00:17 +00:00
digraph digraph: refactor allpaths to print an adjacency list 2019-07-16 02:13:16 +00:00
eg cmd/eg: Gofmt eg's dry-run output. 2017-07-13 04:09:46 +00:00
fiximports all: set GO111MODULE=off for tests that use GOPATHs in testdata. 2018-10-03 17:21:27 +00:00
getgo cmd/getgo: fix build on aix 2019-04-10 13:57:22 +00:00
go-contrib-init cmd/go-contrib-init: exit with an error if package install fails 2017-07-17 03:20:55 +00:00
godex x/tools: remove old renaming imports of go/constant as exact 2018-08-10 17:04:37 +00:00
godoc godoc/env: replace with golangorgenv 2019-03-07 16:39:06 +00:00
goimports cmd/goimports: reuse cached state 2019-05-20 21:49:40 +00:00
gomvpkg cmd/gomvpkg: add missing closing double-quote to documentation 2018-05-22 18:16:25 +00:00
gopls cmd/gopls: preparing for v0.1.0 2019-06-12 23:17:17 +00:00
gorename cmd/godoc,cmd/gorename,refactor/rename: skip tests on GOOS=android 2019-03-06 15:27:20 +00:00
gotype gotype: fix default importer for Go 1.8. 2017-04-10 16:28:46 +00:00
goyacc cmd/goyacc: put //line annotations on the first column. 2018-09-26 03:27:08 +00:00
guru cmd/guru: fix guessImportPath for Windows 2019-02-25 23:45:24 +00:00
html2article x/tools/cmd/html2article: remove unused functions 2017-03-01 14:53:04 +00:00
present cmd/present: correct function reference. 2019-07-02 20:17:34 +00:00
splitdwarf cmd/splitdwarf: fix skip on Windows 2019-05-25 14:57:41 +00:00
ssadump go/ssa/ssautil: add AllPackages method 2018-10-15 18:41:29 +00:00
stress cmd/stress: prefix logs with start date/time 2018-11-27 19:52:27 +00:00
stringer cmd/stringer: compile error when constants change 2019-03-18 00:52:22 +00:00
toolstash cmd/toolstash: don't try comparing "asm -V=full" output. 2017-11-02 22:54:56 +00:00