1
0
mirror of https://github.com/golang/go synced 2024-11-14 09:00:21 -07:00
go/src/cmd/cover
Dhananjay Nakrani c82a6307f4 cmd/cover: take default value of total only once.
Defaulting total to 1 for each function, adds up to the
counting error. testing/cover.go already does this once.

Fixes #20515

Change-Id: I0e3f524c2ccb628eb9a8f0a1f81c22365c24cf9a
Reviewed-on: https://go-review.googlesource.com/44337
Run-TryBot: Dhananjay Nakrani <dhananjayn@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-06-02 17:59:12 +00:00
..
testdata cmd/cover: take default value of total only once. 2017-06-02 17:59:12 +00:00
cover_test.go cmd/cover: take default value of total only once. 2017-06-02 17:59:12 +00:00
cover.go cmd/cover: fix spelling mistake 2016-12-20 04:45:25 +00:00
doc.go
func.go cmd/cover: take default value of total only once. 2017-06-02 17:59:12 +00:00
html.go cmd/cover: don't ignore os.Create error 2016-11-17 00:10:10 +00:00
profile.go cmd/cover: handle multiple samples from the same location 2016-11-18 20:44:52 +00:00