1
0
mirror of https://github.com/golang/go synced 2024-11-05 11:36:10 -07:00
go/src
Rob Pike 6d86c14efa cmd/go: fix a couple of bugs in coverage tooling
Merging a couple of CLs into one, since they collided in my client
and I'm lazy.

1) Fix up output in "go test -cover" case.
We need to tell the testing package the name of the package being tested
and the name of the package being covered. It can then sort out the report.

2) Filter out the _test.go files from coverage processing. We want to measure
what the tests cover, not what's covered in the tests,
The coverage for encoding/gob goes from 82.2% to 88.4%.
There may be a cleaner way to do this - suggestions welcome - but ça suffit.

Fixes #5810.

R=rsc
CC=golang-dev
https://golang.org/cl/10868047
2013-07-10 09:52:36 +10:00
..
cmd cmd/go: fix a couple of bugs in coverage tooling 2013-07-10 09:52:36 +10:00
lib9 lib9: restore printing of signed integers 2013-06-30 19:53:36 -04:00
libbio
libmach runtime: record proper goroutine state during stack split 2013-06-27 11:32:01 -04:00
pkg cmd/go: fix a couple of bugs in coverage tooling 2013-07-10 09:52:36 +10:00
all.bash
all.bat all.bat,make.bat,run.bat: make these work even when directory has space in it 2013-03-25 12:13:34 +11:00
all.rc
clean.bash
clean.bat
clean.rc
make.bash cmd/dist, make.bash: pass -mmacosx-version-min=10.6 to gcc on Darwin 2013-04-16 13:30:52 -07:00
make.bat all.bat,make.bat,run.bat: make these work even when directory has space in it 2013-03-25 12:13:34 +11:00
Make.dist
make.rc build: fix make.rc on Plan 9 2013-05-24 13:55:19 -07:00
race.bash
race.bat
run.bash run.bash: raise ulimit for the number of threads. 2013-06-17 19:31:58 +10:00
run.bat api: add go1.1.txt; update cmd/api to use it 2013-05-06 17:25:09 -07:00
run.rc
sudo.bash cmd/cov: delete 2013-05-24 11:06:06 -07:00