MCPcopy Index your code
hub / github.com/coder/coder / startSubprocess

Function startSubprocess

tailnet/test/integration/integration_test.go:409–414  ·  view source on GitHub ↗

startSubprocess launches the test binary with the same flags as the test, but with additional flags added. See integration.ExecBackground for more details.

(t *testing.T, processName string, netNS *os.File, flags []string)

Source from the content-addressed store, hash-verified

407//
408// See integration.ExecBackground for more details.
409func startSubprocess(t *testing.T, processName string, netNS *os.File, flags []string) (<-chan error, func() error) {
410 name := os.Args[0]
411 // Always use verbose mode since it gets piped to the parent test anyways.
412 args := append(os.Args[1:], append([]string{"-test.v=true"}, flags...)...) //nolint:gocritic
413 return integration.ExecBackground(t, processName, netNS, name, args)
414}
415
416func writeDERPMapToFile(path string, derpMap *tailcfg.DERPMap) error {
417 f, err := os.Create(path)

Callers 3

startServerSubprocessFunction · 0.85
startSTUNSubprocessFunction · 0.85
startClientSubprocessFunction · 0.85

Calls 1

ExecBackgroundFunction · 0.92

Tested by

no test coverage detected