Documentation ¶
Overview ¶
Package gotest contains utilities used by plz_go_test.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsVersion18 ¶
IsVersion18 returns true if the given Go tool is version 1.8 or greater. This is needed because the test main signature has changed - it's not subject to the Go1 compatibility guarantee :(
func WriteTestMain ¶
func WriteTestMain(pkgDir string, version18 bool, sources []string, output string, coverVars []CoverVar) error
WriteTestMain templates a test main file from the given sources to the given output file. This mimics what 'go test' does, although we do not currently support benchmarks or examples.
Types ¶
Click to show internal directories.
Click to hide internal directories.