]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: Delete some unused code.
authorJeremy Schlatter <jeremy.schlatter@gmail.com>
Fri, 20 Mar 2015 21:18:17 +0000 (21:18 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 20 Mar 2015 22:30:59 +0000 (22:30 +0000)
Change-Id: I5e11a76ebb20284618144be2ef5449d3202b6222
Reviewed-on: https://go-review.googlesource.com/7900
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/testflag.go

index b3479e1b2338ec9a739d7d1b2ae8c89baebec19f..19a5dddc919a69c9e91a336d00c2bb44db4fdb84 100644 (file)
@@ -16,43 +16,6 @@ import (
 // our command line are for us, and some are for 6.out, and
 // some are for both.
 
-var usageMessage = `Usage of go test:
-  -c=false: compile but do not run the test binary
-  -file=file_test.go: specify file to use for tests;
-      use multiple times for multiple files
-  -p=n: build and test up to n packages in parallel
-  -x=false: print command lines as they are executed
-
-  // These flags can be passed with or without a "test." prefix: -v or -test.v.
-  -bench="": passes -test.bench to test
-  -benchmem=false: print memory allocation statistics for benchmarks
-  -benchtime=1s: passes -test.benchtime to test
-  -cover=false: enable coverage analysis
-  -covermode="set": specifies mode for coverage analysis
-  -coverpkg="": comma-separated list of packages for coverage analysis
-  -coverprofile="": passes -test.coverprofile to test if -cover
-  -cpu="": passes -test.cpu to test
-  -cpuprofile="": passes -test.cpuprofile to test
-  -memprofile="": passes -test.memprofile to test
-  -memprofilerate=0: passes -test.memprofilerate to test
-  -blockprofile="": pases -test.blockprofile to test
-  -blockprofilerate=0: passes -test.blockprofilerate to test
-  -outputdir=$PWD: passes -test.outputdir to test
-  -parallel=0: passes -test.parallel to test
-  -run="": passes -test.run to test
-  -short=false: passes -test.short to test
-  -timeout=0: passes -test.timeout to test
-  -trace="": passes -test.trace to test
-  -v=false: passes -test.v to test
-`
-
-// usage prints a usage message and exits.
-func testUsage() {
-       fmt.Fprint(os.Stderr, usageMessage)
-       setExitStatus(2)
-       exit()
-}
-
 // testFlagSpec defines a flag we know about.
 type testFlagSpec struct {
        name       string