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

Function runEcho

tests/echo_test.go:109–121  ·  view source on GitHub ↗
(t *testing.T, index int)

Source from the content-addressed store, hash-verified

107}
108
109func runEcho(t *testing.T, index int) {
110
111 ctx := echoContexts[index]
112
113 ctx.Tester = NewSignalTester(t)
114 ctx.Tester.SetTimeout(time.Hour)
115
116 echo_StartServer(ctx)
117
118 echo_StartClient(ctx)
119
120 ctx.Acceptor.Stop()
121}
122
123func TestEchoTCP(t *testing.T) {
124

Callers 3

TestEchoTCPFunction · 0.85
TestEchoUDPFunction · 0.85
TestEchoWSFunction · 0.85

Calls 5

NewSignalTesterFunction · 0.85
echo_StartServerFunction · 0.85
echo_StartClientFunction · 0.85
SetTimeoutMethod · 0.80
StopMethod · 0.65

Tested by

no test coverage detected