Documentation
¶
Overview ¶
Package walktest reads the module's tree for the roofs' walk tests: the directories, sources, and packages beneath a roof, and the module's package graph as go list reports it. Each roof's tests hold its own rules.
Index ¶
- Constants
- func ChildDirs(t *testing.T, dir string) []string
- func Dir(t *testing.T, rel string) string
- func Graph(t *testing.T) map[string]*Package
- func HasPackage(dir string) bool
- func ImportPath(t *testing.T, dir string) string
- func PackagesUnder(t *testing.T, dir string) []string
- func Root(t *testing.T) string
- func Sources(t *testing.T, dir string) []string
- type Package
Constants ¶
const Module = "github.com/fancl20/cion"
Module is the module's import path.
Variables ¶
This section is empty.
Functions ¶
func ChildDirs ¶
ChildDirs lists a directory's subdirectories, testdata aside. A directory that does not exist has none.
func Dir ¶
Dir returns the directory at a slash-separated path below the module's root, such as "pkg/core".
func HasPackage ¶
HasPackage reports whether the directory holds Go source.
func ImportPath ¶
ImportPath returns a directory's import path.
func PackagesUnder ¶
PackagesUnder lists the import paths of the packages beneath a directory, the directory itself aside.