Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/cmd/guru: give an option to exclude test code from the search #25607

Open
vimalk78 opened this issue May 28, 2018 · 2 comments
Open

x/tools/cmd/guru: give an option to exclude test code from the search #25607

vimalk78 opened this issue May 28, 2018 · 2 comments

Comments

@vimalk78
Copy link

@vimalk78 vimalk78 commented May 28, 2018

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.10.2 linux/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/vimal/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/vimal/gowork"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build593363879=/tmp/go-build -gno-record-gcc-switches"

What did you do?

used guru to list callers of a function.

What did you expect to see?

the callers of the function

What did you see instead?

guru returns all the callers of the function, including test code.

Is it possible to give an option to exclude test code while doing the search?
an option to exclude test code from search will not only reduce the time taken to complete the search, but also give lesser results to the editors to work with.

@agnivade

This comment has been minimized.

Copy link
Contributor

@agnivade agnivade commented May 28, 2018

@gopherbot gopherbot added the Tools label Sep 12, 2019
@vimalk78

This comment has been minimized.

Copy link
Author

@vimalk78 vimalk78 commented Jan 17, 2020

ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.