package
1.22.2
Repository: https://github.com/go-asm/go.git
Documentation: pkg.go.dev

# Functions

Builder reports the name of the builder running this test (for example, "linux-amd64" or "windows-386-gce").
CanInternalLink reports whether the current system can link programs with internal linking.
CleanCmdEnv will fill cmd.Env with the environment, excluding certain variables that could modify the behavior of the Go tools such as GODEBUG and GOTRACEBACK.
Command is like exec.Command, but applies the same changes as testenv.CommandContext (with a default Context).
CommandContext is like exec.CommandContext, but: - skips t if the platform does not support os/exec, - sends SIGQUIT (if supported by the platform) instead of SIGKILL in its Cancel function - if the test has a deadline, adds a Context timeout and WaitDelay for an arbitrary grace period before the test's deadline expires, - fails the test if the command does not complete before the test's deadline, and - sets a Cleanup function that verifies that the test did not leak a subprocess.
CPUIsSlow reports whether the CPU running the test is suspected to be slow.
GOROOT reports the path to the directory containing the root of the Go project source tree.
GoTool reports the path to the Go tool.
GoToolPath reports the path to the Go tool.
HasCGO reports whether the current system can use cgo.
HasExternalNetwork reports whether the current system can use external (non-localhost) networks.
HasGoBuild reports whether the current system can build programs with “go build” and then run them with os.StartProcess or exec.Command.
HasGoRun reports whether the current system can run programs with “go run”.
HasLink reports whether the current system can use os.Link.
HasParallelism reports whether the current system can execute multiple threads in parallel.
HasSrc reports whether the entire source tree is available under GOROOT.
HasSymlink reports whether the current system can use os.Symlink.
MustHaveBuildMode reports whether the current system can build programs in the given build mode.
MustHaveCGO calls t.Skip if cgo is not available.
MustHaveExec checks that the current system can start new processes using os.StartProcess or (more commonly) exec.Command.
MustHaveExecPath checks that the current system can start the named executable using os.StartProcess or (more commonly) exec.Command.
MustHaveExternalNetwork checks that the current system can use external (non-localhost) networks.
MustHaveGoBuild checks that the current system can build programs with “go build” and then run them with os.StartProcess or exec.Command.
MustHaveGoRun checks that the current system can run programs with “go run”.
MustHaveLink reports whether the current system can use os.Link.
MustHaveParallelism checks that the current system can execute multiple threads in parallel.
MustHaveSymlink reports whether the current system can use os.Symlink.
MustInternalLink checks that the current system can link programs with internal linking.
OptimizationOff reports whether optimization is disabled.
No description provided by the author
No description provided by the author
SkipIfOptimizationOff skips t if optimization is disabled.
SkipIfShortAndSlow skips t if -short is set and the CPU running the test is suspected to be slow.
SyscallIsNotSupported reports whether err may indicate that a system call is not supported by the current platform or execution environment.
WriteImportcfg writes an importcfg file used by the compiler or linker to dstPath containing entries for the file mappings in packageFiles, as well as for the packages transitively imported by the package(s) in pkgs.

# Variables

Sigquit is the signal to send to kill a hanging subprocess.