Documentation ¶
Overview ¶
Package test_support holds common testing utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadRunfile ¶
func LoadRunfile(path string) (*files.LoadedFile, error)
LoadRunfile tries to read a file using the loading rules of |RunfilePath|.
func RunfilePath ¶
RunfilePath tries to find a testdata file in a build system agnostic way, working for both Bazel environments and default Go ones.
func Runfiles ¶
Runfiles returns a list of all the runfiles associated with this test that contains |dir|. Typical use is Runfiles("testdata")
func TestTmpBase ¶
func TestTmpBase() string
TestTmpDir returns a valid base string to be fed to os.MkdirTemp.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.