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

Function testEnv

env_test.go:7–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5)
6
7func testEnv() (*env, chan *testProcess) {
8 procs := make(chan *testProcess, 10)
9 return &env{
10 newProc: func(_ string, _ []string, files []*os.File, env []string) (process, error) {
11 p, err := newTestProcess(files, env)
12 if err != nil {
13 return nil, err
14 }
15 procs <- p
16 return p, nil
17 },
18 environ: func() []string { return nil },
19 getenv: func(string) string { return "" },
20 closeOnExec: func(fd int) {},
21 }, procs
22}

Callers 8

TestChildExitFunction · 0.85
TestChildKillFunction · 0.85
TestChildNotReadyFunction · 0.85
TestChildReadyFunction · 0.85
TestChildPassedFdsFunction · 0.85
newTestUpgraderFunction · 0.85
TestParentExitFunction · 0.85

Calls 1

newTestProcessFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…