mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/go, testing: revise docs for test flags
In cmd/go's 'go help testflag': * Rewrite list of flags to drop test. prefix on every name. * Sort list of flags. * Add example of using -bench to match all benchmarks. In testing: * Remove mention of undefined 'CPU group' concept. Fixes #4488. Fixes #4508. R=adg CC=golang-dev https://golang.org/cl/7288053
This commit is contained in:
parent
4e285bac6e
commit
89a2a8c8df
2 changed files with 49 additions and 42 deletions
|
|
@ -281,7 +281,7 @@ func (c *common) Fatalf(format string, args ...interface{}) {
|
|||
}
|
||||
|
||||
// Parallel signals that this test is to be run in parallel with (and only with)
|
||||
// other parallel tests in this CPU group.
|
||||
// other parallel tests.
|
||||
func (t *T) Parallel() {
|
||||
t.signal <- (*T)(nil) // Release main testing loop
|
||||
<-t.startParallel // Wait for serial tests to finish
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue