Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(865)

Issue 10932045: code review 10932045: cmd/go, testing: remove redundant "for pkg" in coverage... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by rsc
Modified:
11 years, 11 months ago
Reviewers:
r
CC:
r, gobot, golang-dev
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : diff -r 417ffa35197c https://code.google.com/p/go/ #

Patch Set 3 : diff -r 417ffa35197c https://code.google.com/p/go/ #

Patch Set 4 : diff -r c6128b5615d6 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/cmd/go/test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/testing/cover.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
11 years, 11 months ago (2013-07-11 20:43:31 UTC) #1
gobot
R=r (assigned by dsymonds)
11 years, 11 months ago (2013-07-12 04:36:36 UTC) #2
r
LGTM I said I was happy with this as it is. Why the urge to ...
11 years, 11 months ago (2013-07-12 04:49:34 UTC) #3
rsc
On Fri, Jul 12, 2013 at 12:49 AM, <r@golang.org> wrote: > LGTM > > I ...
11 years, 11 months ago (2013-07-12 04:59:33 UTC) #4
r
I see. Thanks. In the all the noise I missed that - which is an ...
11 years, 11 months ago (2013-07-12 05:09:16 UTC) #5
rsc
11 years, 11 months ago (2013-07-12 11:34:23 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=fd8dcd53e0ec ***

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://codereview.appspot.com/10932045
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b