MCPcopy
hub / github.com/CodisLabs/codis / TestApiProxy

Function TestApiProxy

pkg/topom/topom_api_test.go:96–108  ·  view source on GitHub ↗
(x *testing.T)

Source from the content-addressed store, hash-verified

94}
95
96func TestApiProxy(x *testing.T) {
97 t := openTopom()
98 defer t.Close()
99
100 c := newApiClient(t)
101
102 p, z := openProxy()
103 defer z.Shutdown()
104
105 assert.MustNoError(c.CreateProxy(p.AdminAddr))
106 assert.MustNoError(c.ReinitProxy(p.Token))
107 assert.MustNoError(c.RemoveProxy(p.Token, false))
108}

Callers

nothing calls this directly

Calls 8

openTopomFunction · 0.85
newApiClientFunction · 0.85
openProxyFunction · 0.70
CloseMethod · 0.65
ShutdownMethod · 0.45
CreateProxyMethod · 0.45
ReinitProxyMethod · 0.45
RemoveProxyMethod · 0.45

Tested by

no test coverage detected