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

Function TestChildReady

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

Source from the content-addressed store, hash-verified

59}
60
61func TestChildReady(t *testing.T) {
62 env, procs := testEnv()
63
64 child, err := startChild(env, nil)
65 if err != nil {
66 t.Fatal(err)
67 }
68
69 proc := <-procs
70 if _, _, err := proc.notify(); err != nil {
71 t.Fatal("Can't notify:", err)
72 }
73 <-child.ready
74 proc.exit(nil)
75}
76
77func TestChildPassedFds(t *testing.T) {
78 env, procs := testEnv()

Callers

nothing calls this directly

Calls 4

testEnvFunction · 0.85
startChildFunction · 0.85
notifyMethod · 0.80
exitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…