MCPcopy
hub / github.com/davyxu/cellnet / TestASyncRPC

Function TestASyncRPC

tests/rpc_test.go:157–167  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

155}
156
157func TestASyncRPC(t *testing.T) {
158
159 asyncRPC_Signal = NewSignalTester(t)
160
161 rpc_StartServer()
162
163 rpc_StartClient(asyncRPC_OnClientEvent)
164 asyncRPC_Signal.WaitAndExpect("async not recv data ", 1, 2)
165
166 rpc_Acceptor.Stop()
167}
168
169func TestTypeRPC(t *testing.T) {
170

Callers

nothing calls this directly

Calls 5

NewSignalTesterFunction · 0.85
rpc_StartServerFunction · 0.85
rpc_StartClientFunction · 0.85
WaitAndExpectMethod · 0.80
StopMethod · 0.65

Tested by

no test coverage detected