]> Cypherpunks repositories - gostls13.git/commit
cmd/go, testing: remove redundant "for pkg" in coverage message
authorRuss Cox <rsc@golang.org>
Fri, 12 Jul 2013 11:34:16 +0000 (07:34 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 12 Jul 2013 11:34:16 +0000 (07:34 -0400)
commit56cd47b295e033f39534d80effc45f4abe125bec
treefe58718621a6a69833caffc4ca1b9d28f59dfd05
parent39b5f3a4515e04ec2a7b3054e3357c5c5af102ef
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
src/cmd/go/test.go
src/pkg/testing/cover.go