1
0
mirror of https://github.com/golang/go synced 2024-10-04 18:31:22 -06:00
go/src/pkg/testing
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
..
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: fix a couple of bugs in coverage tooling 2013-07-10 09:52:36 +10: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