From 4b0e086348c99eaa458f18e4b3e4498f0aaadc1a Mon Sep 17 00:00:00 2001
From: Than McIntosh
-
@@ -118,6 +119,13 @@ Go command
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
Go command
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.
+