all: rewrite references to old tool names

R=golang-dev, nigeltao
CC=golang-dev
https://golang.org/cl/5683045
This commit is contained in:
Rob Pike 2012-02-20 13:42:37 +11:00
parent 5cff1903ea
commit d6f8c751de
3 changed files with 10 additions and 11 deletions

View File

@ -11,7 +11,7 @@ sections of code have been executed. When the command finishes,
cov prints the line numbers of sections of code in the binary that cov prints the line numbers of sections of code in the binary that
were not executed. With no arguments it assumes the command "6.out". were not executed. With no arguments it assumes the command "6.out".
Usage: cov [-lsv] [-g substring] [-m minlines] [6.out args] Usage: go tool cov [-lsv] [-g substring] [-m minlines] [6.out args]
The options are: The options are:
@ -26,8 +26,7 @@ The options are:
-m minlines -m minlines
only report uncovered sections of code larger than minlines lines only report uncovered sections of code larger than minlines lines
For reasons of disambiguation it is installed as 6cov although it also serves The program is the same for all architectures: 386, amd64, and arm.
as an 8cov and a 5cov.
*/ */
package documentation package documentation

View File

@ -16,7 +16,7 @@ var matchBenchmarks = flag.String("test.bench", "", "regular expression to selec
var benchTime = flag.Float64("test.benchtime", 1, "approximate run time for each benchmark, in seconds") var benchTime = flag.Float64("test.benchtime", 1, "approximate run time for each benchmark, in seconds")
// An internal type but exported because it is cross-package; part of the implementation // An internal type but exported because it is cross-package; part of the implementation
// of gotest. // of go test.
type InternalBenchmark struct { type InternalBenchmark struct {
Name string Name string
F func(b *B) F func(b *B)
@ -213,7 +213,7 @@ func (r BenchmarkResult) String() string {
} }
// An internal function but exported because it is cross-package; part of the implementation // An internal function but exported because it is cross-package; part of the implementation
// of gotest. // of go test.
func RunBenchmarks(matchString func(pat, str string) (bool, error), benchmarks []InternalBenchmark) { func RunBenchmarks(matchString func(pat, str string) (bool, error), benchmarks []InternalBenchmark) {
// If no flag was specified, don't run benchmarks. // If no flag was specified, don't run benchmarks.
if len(*matchBenchmarks) == 0 { if len(*matchBenchmarks) == 0 {
@ -281,7 +281,7 @@ func (b *B) trimOutput() {
} }
// Benchmark benchmarks a single function. Useful for creating // Benchmark benchmarks a single function. Useful for creating
// custom benchmarks that do not use gotest. // custom benchmarks that do not use go test.
func Benchmark(f func(b *B)) BenchmarkResult { func Benchmark(f func(b *B)) BenchmarkResult {
b := &B{ b := &B{
common: common{ common: common{

View File

@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// Package testing provides support for automated testing of Go packages. // Package testing provides support for automated testing of Go packages.
// It is intended to be used in concert with the ``gotest'' utility, which automates // It is intended to be used in concert with the ``go test'' utility, which automates
// execution of any function of the form // execution of any function of the form
// func TestXxx(*testing.T) // func TestXxx(*testing.T)
// where Xxx can be any alphanumeric string (but the first letter must not be in // where Xxx can be any alphanumeric string (but the first letter must not be in
@ -12,7 +12,7 @@
// //
// Functions of the form // Functions of the form
// func BenchmarkXxx(*testing.B) // func BenchmarkXxx(*testing.B)
// are considered benchmarks, and are executed by gotest when the -test.bench // are considered benchmarks, and are executed by go test when the -test.bench
// flag is provided. // flag is provided.
// //
// A sample benchmark function looks like this: // A sample benchmark function looks like this:
@ -53,7 +53,7 @@ var (
// The short flag requests that tests run more quickly, but its functionality // The short flag requests that tests run more quickly, but its functionality
// is provided by test writers themselves. The testing package is just its // is provided by test writers themselves. The testing package is just its
// home. The all.bash installation script sets it to make installation more // home. The all.bash installation script sets it to make installation more
// efficient, but by default the flag is off so a plain "gotest" will do a // efficient, but by default the flag is off so a plain "go test" will do a
// full test of the package. // full test of the package.
short = flag.Bool("test.short", false, "run smaller test suite to save time") short = flag.Bool("test.short", false, "run smaller test suite to save time")
@ -205,7 +205,7 @@ func (t *T) Parallel() {
} }
// An internal type but exported because it is cross-package; part of the implementation // An internal type but exported because it is cross-package; part of the implementation
// of gotest. // of go test.
type InternalTest struct { type InternalTest struct {
Name string Name string
F func(*T) F func(*T)
@ -227,7 +227,7 @@ func tRunner(t *T, test *InternalTest) {
} }
// An internal function but exported because it is cross-package; part of the implementation // An internal function but exported because it is cross-package; part of the implementation
// of gotest. // of go test.
func Main(matchString func(pat, str string) (bool, error), tests []InternalTest, benchmarks []InternalBenchmark, examples []InternalExample) { func Main(matchString func(pat, str string) (bool, error), tests []InternalTest, benchmarks []InternalBenchmark, examples []InternalExample) {
flag.Parse() flag.Parse()
parseCpuList() parseCpuList()