1
0
mirror of https://github.com/golang/go synced 2024-10-04 18:21:21 -06:00
go/src/pkg/testing
Russ Cox 56cd47b295 cmd/go, testing: remove redundant "for pkg" in coverage message
This is a transcript before this change. I've capitalized the text being removed.
Note that it is always near another line that already says fmt, marked with <<<

$ cd $GOROOT/src/pkg/fmt

$ go test -cover
PASS
coverage FOR FMT: 91.3% of statements
ok  	fmt	0.040s <<<

$ go test -coverpkg strconv
PASS
coverage FOR FMT: 64.9% of statements in strconv
ok  	fmt	0.039s <<<

$ go test -cover -c
$ ./fmt.test -test.covermode=set <<<
PASS
coverage FOR FMT: 91.3% of statements

$ go test -coverpkg strconv -c
$ ./fmt.test -test.covermode=set <<<
PASS
coverage FOR FMT: 64.9% of statements in strconv

That the summary printed by 'go test [options] fmt' is unchanged:

$ go test -cover fmt
ok  	fmt	0.040s	coverage: 91.3% of statements

$ go test -coverpkg strconv fmt
ok  	fmt	0.038s	coverage: 64.9% of statements in strconv

R=r
CC=gobot, golang-dev
https://golang.org/cl/10932045
2013-07-12 07:34:16 -04:00
..
iotest testing/iotest: rephrase DataErrReader's description 2013-04-12 16:08:56 -07:00
quick testing/quick: fix for aliased types, delete duplicate uint8 test, and fix randFloat64() to give random numbers from (-math.MaxFloat64, math.MaxFloat64). 2013-05-14 17:14:59 -07:00
allocs.go testing: quantize AllocsPerRun 2013-05-30 11:28:08 -04:00
benchmark_test.go testing: fix rounding error in roundDown10 2013-06-02 09:13:12 +10:00
benchmark.go testing: fix rounding error in roundDown10 2013-06-02 09:13:12 +10:00
cover.go cmd/go, testing: remove redundant "for pkg" in coverage message 2013-07-12 07:34:16 -04:00
example.go testing: allow examples to pass (fix build) 2013-01-18 12:25:41 +11:00
export_test.go testing: fix rounding error in roundDown10 2013-06-02 09:13:12 +10:00
testing.go cmd/go: simplify flags for coverage 2013-06-18 17:15:26 -07:00