Documentation
¶
Index ¶
- func FilterPackagesWithTests(pkgs []string) []string
- func FindAffectedPackages(pkg string, depMap DepMap, externalPackage bool, maxDepth int) []string
- func GetFilePackages(files []string) ([]string, error)
- func GetGoFileMap(packages []Package, includeTestFiles bool) map[string][]string
- func GetPackageNames(dirs []string) []string
- func GoList() (*utils.CmdOutput, error)
- type DepMap
- type Package
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterPackagesWithTests ¶
Filter out test packages with no actual test functions
func FindAffectedPackages ¶
func GetFilePackages ¶
func GetGoFileMap ¶
GetGoFileMap returns a map of go files to the packages that embed them
func GetPackageNames ¶
Types ¶
type DepMap ¶
func GetGoDepMap ¶
type Package ¶
type Package struct {
Dir string `json:"Dir"`
ImportPath string `json:"ImportPath"`
Root string `json:"Root"`
Deps []string `json:"Deps"`
TestImports []string `json:"TestImports"`
XTestImports []string `json:"XTestImports"`
GoFiles []string `json:"GoFiles"`
TestGoFiles []string `json:"TestGoFiles"`
XTestGoFiles []string `json:"XTestGoFiles"`
EmbedFiles []string `json:"EmbedFiles"`
}
Click to show internal directories.
Click to hide internal directories.