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

Function TestSyncRPC

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

Source from the content-addressed store, hash-verified

143}
144
145func TestSyncRPC(t *testing.T) {
146
147 syncRPC_Signal = NewSignalTester(t)
148
149 rpc_StartServer()
150
151 rpc_StartClient(syncRPC_OnClientEvent)
152 syncRPC_Signal.WaitAndExpect("sync not recv data ", 100, 200)
153
154 rpc_Acceptor.Stop()
155}
156
157func TestASyncRPC(t *testing.T) {
158

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