build/maintner/godata
Dmitri Shuralyov 50b1eb8814 maintner/godata: skip TestGerritHashtags when TEST_GERRIT_AUTH unset
TestGerritHashtags is documented to be off by default unless
environment variable TEST_GERRIT_AUTH is set to "user:token",
or we're running in the prod project.

However, the previous code never skipped TestGerritHashtags,
even when TEST_GERRIT_AUTH wasn't set, because strings.SplitN
returns a slice with length 1 when the input string is empty.
This change fixes that.

Updates golang/go#28318

Change-Id: Ib2f113dbc3ccfd933f9944fe8efa105ff3ba5057
Reviewed-on: https://go-review.googlesource.com/c/153442
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-12-14 16:27:25 +00:00
..
README.md all: add README.md files where missing, and tool to keep them updated 2017-08-02 22:17:52 +00:00
example_test.go maintner/godata: add example 2017-04-30 21:34:39 +00:00
godata.go maintner, godata: explain updates and read locks 2018-06-12 22:28:09 +00:00
godata_test.go maintner/godata: skip TestGerritHashtags when TEST_GERRIT_AUTH unset 2018-12-14 16:27:25 +00:00

README.md

GoDoc

golang.org/x/build/maintner/godata

Package godata loads the Go project's corpus of Git, Github, and Gerrit activity into memory to allow easy analysis without worrying about APIs and their pagination, quotas, and other nuisances and limitations.