MCPcopy
hub / github.com/cloudflare/tableflip / TestChildExit

Function TestChildExit

child_test.go:8–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestChildExit(t *testing.T) {
9 env, procs := testEnv()
10
11 child, err := startChild(env, nil)
12 if err != nil {
13 t.Fatal(err)
14 }
15
16 proc := <-procs
17 proc.exit(nil)
18 if err := <-child.result; err != nil {
19 t.Error("Wait returns non-nil error:", err)
20 }
21}
22
23func TestChildKill(t *testing.T) {
24 env, procs := testEnv()

Callers

nothing calls this directly

Calls 3

testEnvFunction · 0.85
startChildFunction · 0.85
exitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…