Documentation ¶
Index ¶
- func BuiltWithBazel() bool
- func FindBinary(pkg, name string) (string, bool)
- func NewTmpDir(prefix string) (string, error)
- func RelativeTestTargetPath() string
- func Runfile(string) (string, error)
- func RunfilesPath() (string, error)
- func SetGoEnv()
- func TestDataPath(t testing.TB, relative ...string) string
- func TestTmpDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuiltWithBazel ¶
func BuiltWithBazel() bool
BuiltWithBazel returns true iff this library was built with Bazel.
func RelativeTestTargetPath ¶
func RelativeTestTargetPath() string
RelativeTestTargetPath is not implemented.
func TestDataPath ¶
TestDataPath returns a path to an asset in the testdata directory. It knows to access accesses the right path when executing under bazel.
For example, if there is a file testdata/a.txt, you can get a path to that file using TestDataPath(t, "a.txt").
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.