mirror of
https://github.com/golang/go
synced 2024-11-26 03:57:57 -07:00
cmd/go/internal/test: update documentation for the "go test" command
The documentation referred to the package's source root as $GOPATH, which is no longer correct. Fixes #64303 Change-Id: I2ea113497975726468d4ee4f85e2cfcbea9a76d6 Reviewed-on: https://go-review.googlesource.com/c/go/+/598235 Reviewed-by: Julian Dax <julian.dax@posteo.de> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Matloob <matloob@golang.org>
This commit is contained in:
parent
966688a43a
commit
a55f9d93e3
@ -1879,10 +1879,10 @@
|
||||
// the result is not cached. To disable test caching, use any test flag
|
||||
// or argument other than the cacheable flags. The idiomatic way to disable
|
||||
// test caching explicitly is to use -count=1. Tests that open files within
|
||||
// the package's source root (usually $GOPATH) or that consult environment
|
||||
// variables only match future runs in which the files and environment
|
||||
// variables are unchanged. A cached test result is treated as executing
|
||||
// in no time at all, so a successful package test result will be cached and
|
||||
// the package's module or that consult environment variables only
|
||||
// match future runs in which the files and environment variables are
|
||||
// unchanged. A cached test result is treated as executing in no time
|
||||
// at all, so a successful package test result will be cached and
|
||||
// reused regardless of -timeout setting.
|
||||
//
|
||||
// In addition to the build flags, the flags handled by 'go test' itself are:
|
||||
|
@ -132,10 +132,10 @@ If a run of go test has any test or non-test flags outside this set,
|
||||
the result is not cached. To disable test caching, use any test flag
|
||||
or argument other than the cacheable flags. The idiomatic way to disable
|
||||
test caching explicitly is to use -count=1. Tests that open files within
|
||||
the package's source root (usually $GOPATH) or that consult environment
|
||||
variables only match future runs in which the files and environment
|
||||
variables are unchanged. A cached test result is treated as executing
|
||||
in no time at all, so a successful package test result will be cached and
|
||||
the package's module or that consult environment variables only
|
||||
match future runs in which the files and environment variables are
|
||||
unchanged. A cached test result is treated as executing in no time
|
||||
at all, so a successful package test result will be cached and
|
||||
reused regardless of -timeout setting.
|
||||
|
||||
In addition to the build flags, the flags handled by 'go test' itself are:
|
||||
|
Loading…
Reference in New Issue
Block a user