Documentation
¶
Overview ¶
The deptest package contains a shared implementation of negative dependency tests for other packages, making sure we don't start depending on certain packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportAliasCheck ¶ added in v1.52.0
ImportAliasCheck checks that all packages are imported according to Tailscale conventions.
Types ¶
type DepChecker ¶
type DepChecker struct { GOOS string // optional GOARCH string // optional OnDep func(string) // if non-nil, called per dependency OnImport func(string) // if non-nil, called per import BadDeps map[string]string // package => why WantDeps set.Set[string] // packages expected Tags string // comma-separated ExtraEnv []string // extra environment for "go list" (e.g. CGO_ENABLED=1) }
func (DepChecker) Check ¶
func (c DepChecker) Check(t *testing.T)
Click to show internal directories.
Click to hide internal directories.