Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyNoImports ¶
func VerifyNoImports( t testing.TB, pkgPath string, cgo bool, forbiddenPkgs, forbiddenPrefixes []string, allowlist ...string, )
VerifyNoImports verifies that a package doesn't depend (directly or indirectly) on forbidden packages. The forbidden packages are specified as either exact matches or prefix matches. A match is not reported if the package that includes the forbidden package is listed in the allowlist. If GOPATH isn't set, it is an indication that the source is not available and the test is skipped.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.