]> Cypherpunks repositories - gostls13.git/commit
cmd/go: revert "output coverage report even if there are no test files"
authorIan Lance Taylor <iant@golang.org>
Fri, 6 Jul 2018 20:15:01 +0000 (13:15 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 9 Jul 2018 14:42:21 +0000 (14:42 +0000)
commit7254cfc37b3a93a6e83dae22c4bfd6f777edb97e
tree2bf51bce0c1d507a21e834004cbb77dddd1b112c
parentb56e24782f81002fabe06bdf65a735ac7e2b6e1f
cmd/go: revert "output coverage report even if there are no test files"

Original CL description:

    When using test -cover or -coverprofile the output for "no test files"
    is the same format as for "no tests to run".

Reverting because this CL changed cmd/go to build test binaries for
packages that have no tests, leading to extra work and confusion.

Updates #24570
Fixes #25789
Fixes #26157
Fixes #26242

Change-Id: Ibab1307d39dfaec0de9359d6d96706e3910c8efd
Reviewed-on: https://go-review.googlesource.com/122518
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/load/test.go
src/cmd/go/internal/test/test.go
src/cmd/go/testdata/testcover/pkg1/a.go [deleted file]
src/cmd/go/testdata/testcover/pkg2/a.go [deleted file]
src/cmd/go/testdata/testcover/pkg2/a_test.go [deleted file]
src/cmd/go/testdata/testcover/pkg3/a.go [deleted file]
src/cmd/go/testdata/testcover/pkg3/a_test.go [deleted file]
src/cmd/internal/test2json/test2json.go