Documentation ¶
Overview ¶
Package testenv contains helper functions for skipping tests based on which tools are present in the environment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustHaveExec ¶
MustHaveExec checks that the current system can start new processes using os.StartProcess or (more commonly) exec.Command. If not, MustHaveExec calls t.Skip with an explanation.
func NeedsGo ¶
NeedsGo skips t if the current system does not have 'go' or cannot run them with exec.Command.
func NeedsGo1Point ¶
NeedsGo1Point skips t if the Go version used to run the test is older than 1.x.
func NeedsLocalhostNet ¶
NeedsLocalhostNet skips t if networking does not work for ports opened with "localhost".
func SkipIfUnsupportedPlatform ¶
SkipIfUnsupportedPlatform skips test if the current os/arch are not support.
Types ¶
This section is empty.