summaryrefslogtreecommitdiff
path: root/src/cmd/gotest/doc.go
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-04-20 15:44:41 +0200
committerOndřej Surý <ondrej@sury.org>2011-04-20 15:44:41 +0200
commit50104cc32a498f7517a51c8dc93106c51c7a54b4 (patch)
tree47af80be259cc7c45d0eaec7d42e61fa38c8e4fb /src/cmd/gotest/doc.go
parentc072558b90f1bbedc2022b0f30c8b1ac4712538e (diff)
downloadgolang-upstream/2011.03.07.1.tar.gz
Imported Upstream version 2011.03.07.1upstream/2011.03.07.1
Diffstat (limited to 'src/cmd/gotest/doc.go')
-rw-r--r--src/cmd/gotest/doc.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cmd/gotest/doc.go b/src/cmd/gotest/doc.go
index 40c40fc1f..581eaaab9 100644
--- a/src/cmd/gotest/doc.go
+++ b/src/cmd/gotest/doc.go
@@ -20,7 +20,7 @@ They should have signature
func TestXXX(t *testing.T) { ... }
Benchmark functions can be written as well; they will be run only
-when the -benchmarks flag is provided. Benchmarks should have
+when the -test.bench flag is provided. Benchmarks should have
signature
func BenchmarkXXX(b *testing.B) { ... }
@@ -42,15 +42,15 @@ The resulting binary, called (for amd64) 6.out, has a couple of
arguments.
Usage:
- 6.out [-v] [-match pattern] [-benchmarks pattern]
-
-The -v flag causes the tests to be logged as they run. The -match
-flag causes only those tests whose names match the regular expression
-pattern to be run. By default all tests are run silently. If all
-the specified test pass, 6.out prints PASS and exits with a 0 exit
-code. If any tests fail, it prints FAIL and exits with a non-zero
-code. The -benchmarks flag is analogous to the -match flag, but
-applies to benchmarks. No benchmarks run by default.
+ 6.out [-test.v] [-test.run pattern] [-test.bench pattern]
+
+The -test.v flag causes the tests to be logged as they run. The
+-test.run flag causes only those tests whose names match the regular
+expression pattern to be run. By default all tests are run silently.
+If all the specified test pass, 6.out prints PASS and exits with a 0
+exit code. If any tests fail, it prints FAIL and exits with a
+non-zero code. The -test.bench flag is analogous to the -test.run
+flag, but applies to benchmarks. No benchmarks run by default.
*/
package documentation