Documentation
¶
Overview ¶
Package testenv stands in for the standard library's internal/testenv in the upstream crypto/tls tests that tlsx carries. It provides only what those tests call, with tlsx's behaviour: the tests never use the external network (the BoGo suite fetches BoringSSL only when asked, see bogo_shim_test.go).
Index ¶
- Variables
- func Builder() string
- func Command(t testing.TB, name string, args ...string) *exec.Cmd
- func Executable(t testing.TB) string
- func GoToolPath(t testing.TB) string
- func MustHaveExecPath(t testing.TB, program string)
- func MustHaveExternalNetwork(t testing.TB)
- func SetGODEBUG(t testing.TB, godebug string)
Constants ¶
This section is empty.
Variables ¶
var GODEBUGChanged func()
GODEBUGChanged, if set, is called when SetGODEBUG changes GODEBUG and when the test restores it: tlsx reads its settings once (x_godebug.go) and its tests set this to make it read them again.
Functions ¶
func Builder ¶
func Builder() string
Builder is the name of the Go project's builder running the test; tlsx never runs on those builders, so it is always "".
func Executable ¶
Executable is the path of the running test binary.
func GoToolPath ¶
GoToolPath is the go command on PATH (with GOTOOLCHAIN honoured by it).
func MustHaveExecPath ¶
MustHaveExecPath skips the test when the program is not on PATH.
func MustHaveExternalNetwork ¶
MustHaveExternalNetwork skips the test.
func SetGODEBUG ¶
SetGODEBUG appends a setting to GODEBUG for the test, as Go's testenv does (the test must not be parallel).
Types ¶
This section is empty.