// Sets -cover.
// -coverpkg pattern1,pattern2,pattern3
// For a build that targets package 'main' (e.g. building a Go
-// executable), apply coverage analysis to each package matching
-// the patterns. The default is to apply coverage analysis to
-// packages in the main Go module. See 'go help packages' for a
-// description of package patterns. Sets -cover.
+// executable), apply coverage analysis to each package whose
+// import path matches the patterns. The default is to apply
+// coverage analysis to packages in the main Go module. See
+// 'go help packages' for a description of package patterns.
+// Sets -cover.
// -v
// print the names of packages as they are compiled.
// -work
// - "cmd" expands to the Go repository's commands and their
// internal libraries.
//
+// Package names match against fully-qualified import paths or patterns that
+// match against any number of import paths. For instance, "fmt" refers to the
+// standard library's package fmt, but "http" alone for package http would not
+// match the import path "net/http" from the standard library. Instead, the
+// complete import path "net/http" must be used.
+//
// Import paths beginning with "cmd/" only match source code in
// the Go repository.
//
// unique prefix that belongs to you. For example, paths used
// internally at Google all begin with 'google', and paths
// denoting remote repositories begin with the path to the code,
-// such as 'github.com/user/repo'.
+// such as 'github.com/user/repo'. Package patterns should include this prefix.
+// For instance, a package called 'http' residing under 'github.com/user/repo',
+// would be addressed with the fully-qualified pattern:
+// 'github.com/user/repo/http'.
//
// Packages in a program need not have unique package names,
// but there are two reserved package names with special meaning.
// Sets -cover.
//
// -coverpkg pattern1,pattern2,pattern3
-// Apply coverage analysis in each test to packages matching the patterns.
-// The default is for each test to analyze only the package being tested.
-// See 'go help packages' for a description of package patterns.
-// Sets -cover.
+// Apply coverage analysis in each test to packages whose import paths
+// match the patterns. The default is for each test to analyze only
+// the package being tested. See 'go help packages' for a description
+// of package patterns. Sets -cover.
//
// -cpu 1,2,4
// Specify a list of GOMAXPROCS values for which the tests, benchmarks or
- "cmd" expands to the Go repository's commands and their
internal libraries.
+Package names match against fully-qualified import paths or patterns that
+match against any number of import paths. For instance, "fmt" refers to the
+standard library's package fmt, but "http" alone for package http would not
+match the import path "net/http" from the standard library. Instead, the
+complete import path "net/http" must be used.
+
Import paths beginning with "cmd/" only match source code in
the Go repository.
unique prefix that belongs to you. For example, paths used
internally at Google all begin with 'google', and paths
denoting remote repositories begin with the path to the code,
-such as 'github.com/user/repo'.
+such as 'github.com/user/repo'. Package patterns should include this prefix.
+For instance, a package called 'http' residing under 'github.com/user/repo',
+would be addressed with the fully-qualified pattern:
+'github.com/user/repo/http'.
Packages in a program need not have unique package names,
but there are two reserved package names with special meaning.
Sets -cover.
-coverpkg pattern1,pattern2,pattern3
- Apply coverage analysis in each test to packages matching the patterns.
- The default is for each test to analyze only the package being tested.
- See 'go help packages' for a description of package patterns.
- Sets -cover.
+ Apply coverage analysis in each test to packages whose import paths
+ match the patterns. The default is for each test to analyze only
+ the package being tested. See 'go help packages' for a description
+ of package patterns. Sets -cover.
-cpu 1,2,4
Specify a list of GOMAXPROCS values for which the tests, benchmarks or
Sets -cover.
-coverpkg pattern1,pattern2,pattern3
For a build that targets package 'main' (e.g. building a Go
- executable), apply coverage analysis to each package matching
- the patterns. The default is to apply coverage analysis to
- packages in the main Go module. See 'go help packages' for a
- description of package patterns. Sets -cover.
+ executable), apply coverage analysis to each package whose
+ import path matches the patterns. The default is to apply
+ coverage analysis to packages in the main Go module. See
+ 'go help packages' for a description of package patterns.
+ Sets -cover.
-v
print the names of packages as they are compiled.
-work