From a22e9393e39a7a2036ed6f55b9e9b668b261a25c Mon Sep 17 00:00:00 2001 From: Jeremy Schlatter Date: Fri, 20 Mar 2015 21:18:17 +0000 Subject: [PATCH] cmd/go: Delete some unused code. Change-Id: I5e11a76ebb20284618144be2ef5449d3202b6222 Reviewed-on: https://go-review.googlesource.com/7900 Reviewed-by: Brad Fitzpatrick --- src/cmd/go/testflag.go | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/src/cmd/go/testflag.go b/src/cmd/go/testflag.go index b3479e1b233..19a5dddc919 100644 --- a/src/cmd/go/testflag.go +++ b/src/cmd/go/testflag.go @@ -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