Documentation ¶
Overview ¶
Package test_support adds some testing utilities, especially for detecting when running on Bazel.
Index ¶
Constants ¶
View Source
const ( ErrorTagBegin = "// --- ERROR BEGIN" ErrorTagEnd = "// --- ERROR END" )
Variables ¶
This section is empty.
Functions ¶
func ExtractExpectedError ¶
ExtractExpectedError reads an input files and extracts the errors between the marked tags so that they can be compared to the output given by the code.
func LoadRunfile ¶
func LoadRunfile(path string) (*files.LoadedFile, error)
ReadRunfile 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.