• Rob Pike's avatar
    cmd/go: fix a couple of bugs in coverage tooling · 6d86c14e
    Rob Pike authored
    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
    6d86c14e
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
addr2line Loading commit data...
api Loading commit data...
cc Loading commit data...
cgo Loading commit data...
dist Loading commit data...
fix Loading commit data...
gc Loading commit data...
go Loading commit data...
godoc Loading commit data...
gofmt Loading commit data...
ld Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
prof Loading commit data...
yacc Loading commit data...