-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go: redefine -coverpkg to be a pattern list
If you run go test -coverpkg=all fmt one possible interpretation is that you want coverage for all the packages involved in the fmt test, not all the packages in the world. Because coverpkg was previously defined as a list of packages to be loaded, however, it meant all packages in the world. Now that the go command has a concept of package notation being used as a matching filter instead of a direct enumeration, apply that to -coverpkg, so that -coverpkg=all now has the more useful filter interpretation. Fixes #10271. Fixes #21283. Change-Id: Iddb77b21ba286d3dd65b62507af27e244865072d Reviewed-on: https://go-review.googlesource.com/76876 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
- Loading branch information
Showing
6 changed files
with
66 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package p | ||
|
||
// missing import | ||
|
||
var _ = io.DoesNotExist |