diff --git a/doc/go1.22.html b/doc/go1.22.html index 05c7cc090c..64afa898af 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -53,6 +53,25 @@ Do not send CLs removing the interior tags from such phrases.
+ ++`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 +
+ +
+ ? mymod/mypack [no test files]
+
+ and now with Go 1.22, functions in the package are treated as uncovered: +
+ +
+ mymod/mypack coverage: 0.0% of statements
+