MCPcopy Create free account
hub / github.com/gogs/gogs / WantHelperProcess

Function WantHelperProcess

internal/testutil/exec.go:43–45  ·  view source on GitHub ↗

WantHelperProcess returns true if current process is in helper mode.

()

Source from the content-addressed store, hash-verified

41
42// WantHelperProcess returns true if current process is in helper mode.
43func WantHelperProcess() bool {
44 return os.Getenv("GO_WANT_HELPER_PROCESS") == "1"
45}

Callers 4

TestWorkDirHelperFunction · 0.92
TestCustomDirHelperFunction · 0.92
TestHomeDirHelperFunction · 0.92
TestExecHelperFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestWorkDirHelperFunction · 0.74
TestCustomDirHelperFunction · 0.74
TestHomeDirHelperFunction · 0.74
TestExecHelperFunction · 0.68