зеркало из https://github.com/golang/build.git
50b1eb8814
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> |
||
---|---|---|
.. | ||
README.md | ||
example_test.go | ||
godata.go | ||
godata_test.go |