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

Function newTestUpgrader

upgrader_test.go:24–39  ·  view source on GitHub ↗
(opts Options)

Source from the content-addressed store, hash-verified

22}
23
24func newTestUpgrader(opts Options) *testUpgrader {
25 env, procs := testEnv()
26 u, err := newUpgrader(env, opts)
27 if err != nil {
28 panic(err)
29 }
30 err = u.Ready()
31 if err != nil {
32 panic(err)
33 }
34
35 return &testUpgrader{
36 Upgrader: u,
37 procs: procs,
38 }
39}
40
41func (tu *testUpgrader) upgradeProc(t *testing.T) (*testProcess, <-chan error) {
42 t.Helper()

Callers 9

TestUpgraderCleanExitFunction · 0.85
TestUpgraderUncleanExitFunction · 0.85
TestUpgraderTimeoutFunction · 0.85
TestUpgraderListenConfigFunction · 0.85
TestHasParentFunction · 0.85
TestUpgraderReadyFunction · 0.85
TestReadyWritesPIDFileFunction · 0.85

Calls 3

testEnvFunction · 0.85
newUpgraderFunction · 0.85
ReadyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…