diff --git a/doc/go1.22.html b/doc/go1.22.html index 39e2dca610..f9750a3191 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -101,9 +101,10 @@ func main() {

-go test -cover now prints coverage summaries for covered -packages that do not have their own test files. Prior to Go 1.22 a -go test -cover run for such a package would report + go test -cover now prints coverage summaries + for covered packages that do not have their own test files. Prior to Go 1.22 a + go test -cover run for such a package would + report

@@ -118,6 +119,13 @@ packages that do not have their own test files. Prior to Go 1.22 a mymod/mypack coverage: 0.0% of statements

+

+ Note that if a package contains no executable code at all, we can't report + a meaningful coverage percentage; for such packages the go tool + will continue to report that there are no test files. +

+ +

Trace