]> Cypherpunks repositories - gostls13.git/commit
cmd/go: output coverage report even if there are no test files
authorDennis Kuhnert <mail.kuhnert@gmail.com>
Tue, 29 May 2018 15:39:00 +0000 (17:39 +0200)
committerIan Lance Taylor <iant@golang.org>
Wed, 6 Jun 2018 01:10:20 +0000 (01:10 +0000)
commitebb8a1f8e6bf14ce4773e930870985571aaff932
treeb82c94d0c39dd340dedc8be05c29952f24f3c165
parentd159d6108c4d7ba962bb6eea13f06590a76ac9e8
cmd/go: output coverage report even if there are no test files

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

Fixes #24570

Change-Id: If05609411676d42d94c1feac4bc839974fae2cc1
Reviewed-on: https://go-review.googlesource.com/115095
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@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 [new file with mode: 0644]
src/cmd/go/testdata/testcover/pkg2/a.go [new file with mode: 0644]
src/cmd/go/testdata/testcover/pkg2/a_test.go [new file with mode: 0644]
src/cmd/go/testdata/testcover/pkg3/a.go [new file with mode: 0644]
src/cmd/go/testdata/testcover/pkg3/a_test.go [new file with mode: 0644]
src/cmd/internal/test2json/test2json.go